redis_func_cache.policies.fifo module#

FIFO eviction policies

final class redis_func_cache.policies.fifo.FifoClusterMultiplePolicy[source]#

Bases: FifoScriptsMixin, PickleMd5HashMixin, BaseClusterMultiplePolicy

FIFO eviction policy with Redis cluster support, multiple key pairs.

Inheritance diagram of FifoClusterMultiplePolicy

Each decorated function has its own Redis key pair.

Parameters:

cache – Optional weakref proxy to the RedisFuncCache instance 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, BaseClusterSinglePolicy

FIFO eviction policy with Redis cluster support, single key pair.

Inheritance diagram of FifoClusterPolicy

All decorated functions share the same Redis key pair.

final class redis_func_cache.policies.fifo.FifoMultiplePolicy[source]#

Bases: FifoScriptsMixin, PickleMd5HashMixin, BaseMultiplePolicy

FIFO eviction policy, multiple key pairs.

Inheritance diagram of FifoMultiplePolicy

Each decorated function has its own Redis key pair.

Parameters:

cache – Optional weakref proxy to the RedisFuncCache instance 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, BaseSinglePolicy

FIFO eviction policy, single key pair.

Inheritance diagram of FifoPolicy

All decorated functions share the same Redis key pair.

final class redis_func_cache.policies.fifo.FifoTClusterMultiplePolicy[source]#

Bases: FifoTScriptsMixin, PickleMd5HashMixin, BaseClusterMultiplePolicy

FIFO eviction policy (timestamp variant) with Redis cluster support, multiple key pairs.

Inheritance diagram of FifoTClusterMultiplePolicy

Each decorated function has its own Redis key pair.

Parameters:

cache – Optional weakref proxy to the RedisFuncCache instance 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, BaseClusterSinglePolicy

FIFO eviction policy (timestamp variant) with Redis cluster support, single key pair.

Inheritance diagram of FifoTClusterPolicy

All decorated functions share the same Redis key pair.

final class redis_func_cache.policies.fifo.FifoTMultiplePolicy[source]#

Bases: FifoTScriptsMixin, PickleMd5HashMixin, BaseMultiplePolicy

FIFO eviction policy (timestamp variant), multiple key pairs.

Inheritance diagram of FifoTMultiplePolicy

Each decorated function has its own Redis key pair.

Parameters:

cache – Optional weakref proxy to the RedisFuncCache instance 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, BaseSinglePolicy

FIFO eviction policy (timestamp variant), single key pair.

Inheritance diagram of FifoTPolicy

All decorated functions share the same Redis key pair.