Interface Cache
An interface for classes implementing cache capabilities.
Methods summary
public
exists( $key
)
: boolean
Checks if a key exists in a storage.
Checks if a key exists in a storage.
Parameters
Returns
boolean
true
if the key exists, false
otherwise.
public
retrieve( string $key
)
: mixed
Retrieves a value.
Parameters
$key
- The key of the value.
Returns
mixed