|
__init__(self,
pools,
prepare=None,
grace_time=None,
retry_time=None,
compress_threshold=None,
padded=None,
split=None,
prefix=None,
largest_slab=None)
Initialization |
source code
|
|
bool
|
delete(self,
key,
block_time=None,
all_pools=False)
Delete a key/value pair from the cache |
source code
|
|
dict
|
get(self,
*keys)
Get a list of key/value pairs from the cache (if applicable) |
source code
|
|
bool
|
set(self,
key,
value,
max_age)
Set a key/value pair unconditionally |
source code
|
|
bool
|
add(self,
key,
value,
max_age)
Set a key/value pair if the key does not exist yet |
source code
|
|
bool
|
replace(self,
key,
value,
max_age)
Set a key/value pair only if the key does exist already |
source code
|
|
bool
|
store(self,
method,
key,
value,
max_age,
compress=True)
Store the value under the given key expiring now + expiry |
source code
|
|
str
|
_error(self,
line)
Convert a response line into an error or pass it through |
source code
|
|
tuple
|
|
any
|
|
MemcacheConnection
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
int
|
_compress_threshold
Minimal size for compression
|
int
|
_grace_time
Grace time for this instance
|
int
|
_largest_slab
Largest SLAB size
|
bool
|
_padded
Pad small values (<16 byte)?
|
tuple
|
_pools
List of available pools
|
str
|
_prefix
Key prefix to use
|
int
|
_retry_time
Retry time for this instance
|
bool
|
_split
Allow large value splitting?
|
tuple
|
_weighted
Weighted list of available pools
|