backends Package

inmemdb Module

Keystone In-Memory Dogpile.cache backend implementation.

class keystone.common.kvs.backends.inmemdb.MemoryBackend(arguments)[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]

memcached Module

Table Of Contents

Previous topic

kvs Package

Next topic

ldap Package

This Page