Memcached
class Memcached extends AbstractDriver (View source)
Traits
Constants
DRIVER_NAME |
|
Properties
protected mixed | $instance | Local instance of handler | from InstanceTrait |
Methods
Class constructor
Test the driver
Get item from cache
Save item into cache
Delete item from cache
Clear namespace or whole cache
Get multiple items from cache
Save multiple items into cache
Delete multiple items from cache
Check if item is in cache
Get cache driver statistics
No description
Details
at line 33
AbstractDriver
__construct(array $configuration = [])
Class constructor
in AbstractDriver at line 36
string
getName()
Get the driver name
at line 57
bool
test()
Test the driver
The behaiour of this method may differ fro one driver to another. It could forward, for example, a dependency test, a in-cache test or both.
at line 79
string|null
get(string $key, string $namespace)
Get item from cache
at line 98
bool
set(string $key, string $namespace, mixed $value, int $ttl = null)
Save item into cache
at line 117
bool
delete(string $key, string $namespace)
Delete item from cache
at line 132
bool
clear(string $namespace = null)
Clear namespace or whole cache
at line 153
array
getMultiple(array $keys, string $namespace)
Get multiple items from cache
at line 187
bool
setMultiple(array $key_values, string $namespace, int $ttl = null)
Save multiple items into cache
at line 210
bool
deleteMultiple(array $keys, string $namespace)
Delete multiple items from cache
at line 229
bool
has(array $key, string $namespace)
Check if item is in cache
at line 238
array
stats()
Get cache driver statistics
The behaiour of this method may differ fro one driver to another. Providers will transform data in a EnhancedCacheItemPoolStats object.
in InstanceTrait at line 33
mixed
getInstance()
Return the current instance
in InstanceTrait at line 42
protected
setInstance($instance)
Set the current instance