MemcachedStorage
class MemcachedStorage implements Storage, BulkReader, BulkWriter
Memcached storage using memcached extension.
Constants
private internal MetaCallbacks |
|
private internal MetaData |
|
private internal MetaDelta |
|
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.
Writes to cache in bulk.
Removes item from the cache.
Removes multiple items from cache
Removes items from the cache by conditions.
Details
at line 35
static bool
isAvailable()
Checks if Memcached extension is available.
at line 41
__construct(string $host = 'localhost', int $port = 11211, string $prefix = '', Journal|null $journal = null)
No description
at line 60
void
addServer(string $host = 'localhost', int $port = 11211)
No description
at line 69
Memcached
getConnection()
No description
at line 75
mixed
read(string $key)
Read from cache.
at line 104
array
bulkRead(array $keys)
Reads from cache in bulk.
at line 131
void
lock(string $key)
Prevents item reading and writing. Lock is released by write() or remove().
at line 136
void
write(string $key, $data, array $dp)
Writes item into the cache.
at line 171
void
bulkWrite(array $items, array $dp)
Writes to cache in bulk.
at line 207
void
remove(string $key)
Removes item from the cache.
at line 213
void
bulkRemove(array $keys)
Removes multiple items from cache
at line 219
void
clean(array $conditions)
Removes items from the cache by conditions.