MemcachedClusterClient

* Use this to connectect to a memcached cluster * *

Constructors

this
this(MemcachedServers servers)
Undocumented in source.

Members

Functions

connect
void connect(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
determineServer
int determineServer(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
disconnect
void disconnect()
Undocumented in source. Be warned that the author may not have intended to support it.
equalWeights
int equalWeights(string key)

use this for sharding - when all servers have equal weights *

getServer
MemcachedServer getServer(string key)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

servers
MemcachedServers servers;
Undocumented in source.

Inherited Members

From MemcachedClient

conn
TCPConnection conn;
Undocumented in source.
server
MemcachedServer server;
Undocumented in source.
connect
void connect(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
disconnect
void disconnect()
Undocumented in source. Be warned that the author may not have intended to support it.
serialize
string serialize(T data)

convert User data type to a string representation

store
RETURN_STATE store(string key, T data, int expires)

store data with key, make it expire after expires secconds if expires == 0 - data will not expire

add
RETURN_STATE add(string key, T data, int expires)
Undocumented in source. Be warned that the author may not have intended to support it.
replace
RETURN_STATE replace(string key, T data, int expires)
Undocumented in source. Be warned that the author may not have intended to support it.
append
RETURN_STATE append(string key, T data)
Undocumented in source. Be warned that the author may not have intended to support it.
prepend
RETURN_STATE prepend(string key, T data)
Undocumented in source. Be warned that the author may not have intended to support it.
cas
RETURN_STATE cas(string key, T data, int casId, int expires)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
RETURN_STATE remove(string key, int time)
Undocumented in source. Be warned that the author may not have intended to support it.
del
alias del = remove
Undocumented in source.
increment
RETURN_STATE increment(string key, int inc)
Undocumented in source. Be warned that the author may not have intended to support it.
incr
alias incr = increment
Undocumented in source.
decrement
RETURN_STATE decrement(string key, int dec)
Undocumented in source. Be warned that the author may not have intended to support it.
decr
alias decr = decrement
Undocumented in source.
touch
RETURN_STATE touch(string key, int expires)
Undocumented in source. Be warned that the author may not have intended to support it.
deserialize
T deserialize(string data)

convert data stored in memcached to the requested type

get
T get(string key)

get back data from the memcached server, return it as type T

gets
T gets(string key, int casId)

get back data form the memcached server, return it as type T,

Meta