keystonemiddleware.openstack.common.memorycache module
Super simple fake memcache client.
-
class keystonemiddleware.openstack.common.memorycache.Client(*args, **kwargs)
Bases: object
Replicates a tiny subset of memcached client interface.
-
add(key, value, time=0, min_compress_len=0)
Sets the value for a key if it doesn’t exist.
-
delete(key, time=0)
Deletes the value associated with a key.
-
get(key)
Retrieves the value for a key or None.
This expunges expired keys during each get.
-
incr(key, delta=1)
Increments the value for a key.
-
set(key, value, time=0, min_compress_len=0)
Sets the value for a key.
-
keystonemiddleware.openstack.common.memorycache.get_client(memcached_servers=None)
-
keystonemiddleware.openstack.common.memorycache.list_opts()
Entry point for oslo-config-generator.