keystone.common.kvs.backends package

Submodules

keystone.common.kvs.backends.inmemdb module

Keystone In-Memory Dogpile.cache backend implementation.

class keystone.common.kvs.backends.inmemdb.MemoryBackend(*args, **kwargs)[source]

Bases: dogpile.cache.api.CacheBackend

A backend that uses a plain dictionary.

There is no size management, and values which are placed into the dictionary will remain until explicitly removed. Note that Dogpile’s expiration of items is based on timestamps and does not remove them from the cache.

E.g.:

from dogpile.cache import make_region

region = make_region().configure(
    'keystone.common.kvs.Memory'
)
delete(key)[source]
delete_multi(keys)[source]
get(key)[source]
get_multi(keys)[source]
set(key, value)[source]
set_multi(mapping)[source]

keystone.common.kvs.backends.memcached module

Module contents