The synaps.common.memorycache Module

Super simple fake memcache client.

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

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.

Previous topic

The synaps.cep.unpack_bolt Module

Next topic

The synaps.compat.flagfile Module

This Page