MemCache

Constructors

this
this(const(char[])[] hosts, uint watchdog)

Members

Classes

Buffer
class Buffer

Functions

add
bool add(const(void)[][] key, const(void)[][] value, int flags, int timeout)

Store the value if key does not already exist

buffer
Buffer buffer(uint size)
close
void close()
decr
bool decr(const(void)[][] key, uint value)
decr
bool decr(const(void)[][] key, uint value, uint result)
get
bool get(const(void)[][] key, Buffer buffer)

VALUE <key> <flags> <bytes>\r\n <data block>\r\n

incr
bool incr(const(void)[][] key, uint value)
incr
bool incr(const(void)[][] key, uint value, uint result)
remove
bool remove(const(void)[][] key, int timeout)

Remove the specified key and make key "invalid" for the duration of timeout, causing add(), get() and remove() on the same key to fail within that period

replace
bool replace(const(void)[][] key, const(void)[][] value, int flags, int timeout)

Store the value only if key exists

set
bool set(const(void)[][] key, const(void)[][] value, int flags, int timeout)

Store the key and value

setHosts
void setHosts(const(char[])[] hosts)
status
void status(void delegate(const(char)[], const(char[])[] list) dg)

Static functions

jhash
uint jhash(const(void)[][] x, uint c)

jhash() -- hash a variable-length key into a 32-bit value

Meta