This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.1 docs or all OpenStack docs too.

The nova.fakememcache Module

Super simple fake memcache client.

class nova.fakememcache.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.

get(key)

Retrieves the value for a key or None.

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.