◆ __construct()
__construct |
( |
|
$hostname, |
|
|
|
$port, |
|
|
string |
$auth = '' |
|
) |
| |
Construct a cache instance.
- Parameters
-
string | $hostname | Hostname of redis server |
int | $port | Port of redis server |
string | $auth | Optional auth token/password |
- Exceptions
-
◆ __call()
__call |
( |
|
$method, |
|
|
|
$args |
|
) |
| |
- Parameters
-
string | $method | Method to call |
array | $args | Arguments to pass |
- Returns
- false|mixed
◆ expire()
Expire item from the cache.
Example:
expires foo
$cache->expire('foo');
- Parameters
-
◆ flush()
Expire all items from the cache.
◆ getConfig()
◆ getDisplayName()
static getDisplayName |
( |
| ) |
|
|
static |
- Returns
- string A translateable display name for this cache class.
◆ getItem()
◆ getRedis()
Returns the instance of the redis server connection.
- Returns
- Redis instance
◆ getStats()
Return statistics.
::getStats()
- Returns
- array|array[]
◆ hasItem()
◆ save()
save |
( |
CacheItemInterface |
$item | ) |
|
The documentation for this class was generated from the following file: