Cacheable
in
Table of Contents
- RFC_7231 = 'D, d M Y H:i:s \\G\\M\\T'
- delete() : bool
- Delete data associated with the key.
- deleteAll() : bool
- Delete all data associated with the keys.
- get() : mixed
- Get data associated with the key.
- getPrefix() : string
- Get cache prefix.
- getTtl() : int
- Get time to live.
- keys() : array<string|int, mixed>
- Get cache keys.
- set() : mixed
- Set data to the given key.
- setPrefix() : self
- Set cache prefix.
Constants
RFC_7231
public
mixed
RFC_7231
= 'D, d M Y H:i:s \\G\\M\\T'
Tags
Methods
delete()
Delete data associated with the key.
public
delete(string $key) : bool
Parameters
- $key : string
Return values
bool —deleteAll()
Delete all data associated with the keys.
public
deleteAll(array<string|int, mixed> $keys) : bool
Parameters
- $keys : array<string|int, mixed>
Return values
bool —get()
Get data associated with the key.
public
get(string $key[, bool $withExpired = false ]) : mixed
Parameters
- $key : string
- $withExpired : bool = false
Return values
mixed —getPrefix()
Get cache prefix.
public
getPrefix() : string
Return values
string —getTtl()
Get time to live.
public
getTtl() : int
Return values
int —keys()
Get cache keys.
public
keys() : array<string|int, mixed>
Return values
array<string|int, mixed> —set()
Set data to the given key.
public
set(string $key, mixed $value) : mixed
Parameters
- $key : string
- $value : mixed
Return values
mixed —setPrefix()
Set cache prefix.
public
setPrefix(string $prefix) : self
Parameters
- $prefix : string