MemcachedStorage
class MemcachedStorage implements Storage, BulkReader
Memcached storage using memcached extension.
Constants
private internal MetaCallbacks |
|
private internal MetaData |
|
private internal MetaDelta |
|
Methods
static bool
isAvailable()
Checks if Memcached extension is available.
__construct(string $host = 'localhost', int $port = 11211, string $prefix = '', Journal|null $journal = null)
No description
void
addServer(string $host = 'localhost', int $port = 11211)
No description
Memcached
getConnection()
No description
mixed
read(string $key)
Read from cache.
array
bulkRead(array $keys)
Reads from cache in bulk.
void
lock(string $key)
Prevents item reading and writing. Lock is released by write() or remove().
void
write(string $key, $data, array $dp)
Writes item into the cache.
void
remove(string $key)
Removes item from the cache.
void
clean(array $conditions)
Removes items from the cache by conditions.
Details
at line 37
static bool
isAvailable()
Checks if Memcached extension is available.
at line 43
__construct(string $host = 'localhost', int $port = 11211, string $prefix = '', Journal|null $journal = null)
No description
at line 62
void
addServer(string $host = 'localhost', int $port = 11211)
No description
at line 71
Memcached
getConnection()
No description
at line 77
mixed
read(string $key)
Read from cache.
at line 106
array
bulkRead(array $keys)
Reads from cache in bulk.
at line 133
void
lock(string $key)
Prevents item reading and writing. Lock is released by write() or remove().
at line 138
void
write(string $key, $data, array $dp)
Writes item into the cache.
at line 173
void
remove(string $key)
Removes item from the cache.
at line 179
void
clean(array $conditions)
Removes items from the cache by conditions.
Traits
SmartObject