MemcachedStorage
class MemcachedStorage implements IStorage, IBulkReader
Memcached storage using memcached extension.
Constants
private internal META_CALLBACKS |
|
private internal META_DATA |
|
private internal META_DELTA |
|
Methods
Checks if Memcached extension is available.
No description
No description
No description
Read from cache.
Reads from cache in bulk.
Prevents item reading and writing. Lock is released by write() or remove().
Writes item into the cache.
Removes item from the cache.
Removes items from the cache by conditions.
Details
at line 42
static bool
isAvailable()
Checks if Memcached extension is available.
at line 48
__construct(string $host = 'localhost', int $port = 11211, string $prefix = '', IJournal $journal = null)
No description
at line 67
void
addServer(string $host = 'localhost', int $port = 11211)
No description
at line 76
Memcached
getConnection()
No description
at line 82
mixed
read(string $key)
Read from cache.
at line 111
array
bulkRead(array $keys)
Reads from cache in bulk.
at line 139
void
lock(string $key)
Prevents item reading and writing. Lock is released by write() or remove().
at line 144
void
write(string $key, $data, array $dp)
Writes item into the cache.
at line 178
void
remove(string $key)
Removes item from the cache.
at line 184
void
clean(array $conditions)
Removes items from the cache by conditions.
Traits
Strict class for better experience.