Method | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
clear ( ) | ||
exists ( $key, $lifetime ) | ||
expire ( $key ) | ||
get ( $key, $lifetime ) | ||
set ( $key, $data, $lifetime ) |
Method | Description | |
---|---|---|
_setExpire ( string $key, integer $lifetime ) | Set expire time on each call since xcache sets it on cache creation. |
public __construct ( array $params = [] ) | ||
$params | array | Optional parameters:
- prefix: (string) The prefix to use for the cache keys. DEFAULT: '' |
protected _setExpire ( string $key, integer $lifetime ) | ||
$key | string | Cache key to expire. |
$lifetime | integer | Lifetime of the data in seconds. |