MemcachedStorage
class MemcachedStorage extends Object implements IStorage
Memcached storage.
Constants
internal META_CALLBACKS |
|
internal META_DATA |
|
internal META_DELTA |
|
Methods
static bool
isAvailable()
Checks if Memcached extension is available.
__construct($host = 'localhost', $port = 11211, $prefix = '', IJournal $journal = NULL)
No description
addServer($host = 'localhost', $port = 11211, $timeout = 1)
No description
Memcache
getConnection()
No description
mixed|null
read($key)
Read from cache.
void
lock($key)
Prevents item reading and writing. Lock is released by write() or remove().
void
write($key, $data, array $dp)
Writes item into the cache.
void
remove($key)
Removes item from the cache.
void
clean(array $conditions)
Removes items from the cache by conditions & garbage collector.
Details
at line 38
static bool
isAvailable()
Checks if Memcached extension is available.
at line 44
__construct($host = 'localhost', $port = 11211, $prefix = '', IJournal $journal = NULL)
No description
at line 59
addServer($host = 'localhost', $port = 11211, $timeout = 1)
No description
at line 71
Memcache
getConnection()
No description
at line 82
mixed|null
read($key)
Read from cache.
at line 116
void
lock($key)
Prevents item reading and writing. Lock is released by write() or remove().
at line 128
void
write($key, $data, array $dp)
Writes item into the cache.
at line 167
void
remove($key)
Removes item from the cache.
at line 178
void
clean(array $conditions)
Removes items from the cache by conditions & garbage collector.