Methods

__construct()

__construct($identifier, $config) 

Parameters

$identifier

$config

_init()

_init() 

Check if other caches or files have been changed since cache creation

check_dependencies(array $dependencies) : bool

Parameters

$dependencies

array

Returns

bool

Delete Cache

delete() 

Purge all caches

delete_all(string $section) : bool

Parameters

$section

string

limit purge to subsection

Returns

bool

Load a cache, this does the generic post-processing

_get() : bool

Returns

boolsuccess

Save a cache, this does the generic pre-processing

_set() : bool

Returns

boolsuccess

validate a driver config value

_validate_config(string $name, mixed $value) : mixed

Parameters

$name

string

name of the config variable to validate

$value

mixed

Returns

mixed

Translates a given identifier to a valid path

identifier_to_path($identifier) : string

Parameters

$identifier

string

Returns

string

Prepend the cache properties

prep_contents() : string

Returns

string

Remove the prepended cache properties and save them in class properties

unprep_contents($payload) 

Parameters

$payload

string

Exceptions

\UnexpectedValueException

 Properties

 

<p>driver specific configuration</p>

$config : array

 

<p>File caching basepath</p>

$path : string

 Constants

 

PROPS_TAG

PROPS_TAG 

const string Tag used for opening & closing cache properties