\Orpheus\CacheCache

The cache interface

The interface to use to define a cache class.

Summary

Methods
Constants
get()
set()
reset()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

get()

get(  $cached) : True

Get the cache for the given parameters

Parameters

$cached

The output to get the cache

Returns

True —

if cache has been retrieved

The type should preserved, even for objects.

set()

set(  $data) : True

Set the cache for the given parameters

Parameters

$data

The data to put in the cache

Returns

True —

if cache has been saved

reset()

reset() : boolean

Reset the cache

Returns

boolean —

True in case of success