__call()
__construct()
call()
check_dependencies()
delete()
delete_all()
get()
get_content_handler()
get_contents()
reset()
set()
set_contents()
stringify_identifier()
_get()
_set()
handle_reading()
handle_writing()
set_content_handler()
$_gettable
$_settable
$content_handler
$contents
$created
$dependencies
$driver
$expiration
$handler_object
$identifier
__call($method, $args) : void | mixed
string
array
voidmixed
__construct(string $identifier, array $config)
stringthe identifier for this cache
arrayadditional config values
call(string | array $callback, array $args, int | null $expiration, array $dependencies) : mixed
stringarrayValid PHP callback
arrayArguments for the above function/method
intnullCache expiration in seconds
arrayContains the identifiers of caches this one will depend on
mixedcheck_dependencies(array $dependencies) : bool
This is static to make it possible in the future to check dependencies from other storages then the current one, though I don't have a clue yet how to make that possible.
array
booleither true or false on any failuredelete()
delete_all($section)
string
get(bool $use_expiration) : \Fuel\Core\Cache_Storage_Driver
Actual reading is being done by the _get() method which needs to be extended.
bool
\CacheExpiredException |
|
|---|---|
\CacheNotFoundException |
get_contents() : mixed
mixedreset()
set(mixed $contents, bool $expiration, array $dependencies)
Actual writing is being done by the _set() method which needs to be extended.
mixedThe content to be cached
boolThe time in seconds until the cache will expire, =< 0 or null means no expiration
arrayarray of names on which this cache depends for
set_contents($contents, $handler) : \Fuel\Core\Cache_Storage_Driver
stringify_identifier(mixed $identifier) : string
mixed
\FuelException |
|---|
string_get() : bool
Needs to set the object properties: - created - expiration - dependencies - contents - content_handler
boolsuccess of the operation_set()
Needs to write the object properties: - created - expiration - dependencies - contents - content_handler
handle_reading($contents) : mixed
mixedhandle_writing($contents) : string
stringset_content_handler($handler) : \Fuel\Core\Cache_Storage_Driver
$_gettable : array
$_settable : array
$content_handler : string
$contents : mixed
$created : int
$dependencies : array
$driver : string
$expiration : int
$identifier : string