Свойство | Type | Description | |
---|---|---|---|
$cache | array | Key-value data storage for the cache |
Méthode | 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 |
Résultat | boolean |
protected array $cache | ||
Résultat | array |