Property | Type | Description | |
---|---|---|---|
$key_prefix | string | Cache key prefix |
Property | Type | Description | |
---|---|---|---|
$_adapter | mixed | Reference to the driver | |
$_backup_driver | string | Fallback driver | |
$_cache_path | string | Path of cache files (if file-based cache) | |
$valid_drivers | array | Valid cache drivers |
Method | Description | |
---|---|---|
__construct ( array $config = [] ) : void | Constructor | |
cache_info ( string $type = 'user' ) : mixed | Cache Info | |
clean ( ) : boolean | Clean the cache | |
decrement ( string $id, integer $offset = 1 ) : mixed | Decrement a raw value | |
delete ( string $id ) : boolean | Delete from Cache | |
get ( string $id ) : mixed | Get | |
get_metadata ( string $id ) : mixed | Get Cache Metadata | |
increment ( string $id, integer $offset = 1 ) : mixed | Increment a raw value | |
is_supported ( string $driver ) : array | Is the requested driver supported in this environment? | |
save ( string $id, mixed $data, integer $ttl = 60, boolean $raw = FALSE ) : boolean | Cache Save |
public __construct ( array $config = [] ) : void | ||
$config | array | = array() |
return | void |
public cache_info ( string $type = 'user' ) : mixed | ||
$type | string | = 'user' user/filehits |
return | mixed | array containing cache info on success OR FALSE on failure |
public get_metadata ( string $id ) : mixed | ||
$id | string | key to get cache metadata on |
return | mixed | cache item metadata |
public is_supported ( string $driver ) : array | ||
$driver | string | The driver to test |
return | array |
protected string $_backup_driver | ||
return | string |
protected string $_cache_path | ||
return | string |
protected array $valid_drivers | ||
return | array |