redis_func_cache.policies.fifo module#
FIFO eviction policies
- final class redis_func_cache.policies.fifo.FifoClusterMultiplePolicy[source]#
Bases:
FifoScriptsMixin,PickleMd5HashMixin,BaseClusterMultiplePolicyFIFO eviction policy with Redis cluster support, multiple key pairs.
Each decorated function has its own Redis key pair.
- Parameters:
cache – Optional weakref proxy to the
RedisFuncCacheinstance using this policy.
Note
The cache argument may be omitted when instantiating a policy. The RedisFuncCache will bind itself to the policy instance by setting this attribute to a weakref proxy during cache construction.
- final class redis_func_cache.policies.fifo.FifoClusterPolicy[source]#
Bases:
FifoScriptsMixin,PickleMd5HashMixin,BaseClusterSinglePolicyFIFO eviction policy with Redis cluster support, single key pair.
All decorated functions share the same Redis key pair.
- final class redis_func_cache.policies.fifo.FifoMultiplePolicy[source]#
Bases:
FifoScriptsMixin,PickleMd5HashMixin,BaseMultiplePolicyFIFO eviction policy, multiple key pairs.
Each decorated function has its own Redis key pair.
- Parameters:
cache – Optional weakref proxy to the
RedisFuncCacheinstance using this policy.
Note
The cache argument may be omitted when instantiating a policy. The RedisFuncCache will bind itself to the policy instance by setting this attribute to a weakref proxy during cache construction.
- final class redis_func_cache.policies.fifo.FifoPolicy[source]#
Bases:
FifoScriptsMixin,PickleMd5HashMixin,BaseSinglePolicyFIFO eviction policy, single key pair.
All decorated functions share the same Redis key pair.
- final class redis_func_cache.policies.fifo.FifoTClusterMultiplePolicy[source]#
Bases:
FifoTScriptsMixin,PickleMd5HashMixin,BaseClusterMultiplePolicyFIFO eviction policy (timestamp variant) with Redis cluster support, multiple key pairs.
Each decorated function has its own Redis key pair.
- Parameters:
cache – Optional weakref proxy to the
RedisFuncCacheinstance using this policy.
Note
The cache argument may be omitted when instantiating a policy. The RedisFuncCache will bind itself to the policy instance by setting this attribute to a weakref proxy during cache construction.
- final class redis_func_cache.policies.fifo.FifoTClusterPolicy[source]#
Bases:
FifoTScriptsMixin,PickleMd5HashMixin,BaseClusterSinglePolicyFIFO eviction policy (timestamp variant) with Redis cluster support, single key pair.
All decorated functions share the same Redis key pair.
- final class redis_func_cache.policies.fifo.FifoTMultiplePolicy[source]#
Bases:
FifoTScriptsMixin,PickleMd5HashMixin,BaseMultiplePolicyFIFO eviction policy (timestamp variant), multiple key pairs.
Each decorated function has its own Redis key pair.
- Parameters:
cache – Optional weakref proxy to the
RedisFuncCacheinstance using this policy.
Note
The cache argument may be omitted when instantiating a policy. The RedisFuncCache will bind itself to the policy instance by setting this attribute to a weakref proxy during cache construction.
- final class redis_func_cache.policies.fifo.FifoTPolicy[source]#
Bases:
FifoTScriptsMixin,PickleMd5HashMixin,BaseSinglePolicyFIFO eviction policy (timestamp variant), single key pair.
All decorated functions share the same Redis key pair.