Property | Type | Description | |
---|---|---|---|
$cache | array | Key-value data storage for the cache |
Method | Description | |
---|---|---|
expire ( string $key ) : boolean | Expires a value that has exceeded its time to live. | |
fetch ( string $key ) : mixed | Fetches a previously stored value. | |
store ( string $key, mixed $data, integer | null $ttl = 3600, boolean $overwrite = true ) : boolean | Stores a value in the cache. |
public store ( string $key, mixed $data, integer | null $ttl = 3600, boolean $overwrite = true ) : boolean | ||
$key | string | Key to associate with the value |
$data | mixed | Data to be stored |
$ttl | integer | null | Time to live in seconds or NULL for forever |
$overwrite | boolean | TRUE to overwrite any existing value associated with the specified key |
return | boolean |
protected array $cache | ||
return | array |