__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
void
mixed
__construct(string $identifier, array $config)
string
the identifier for this cache
array
additional config values
call(string | array $callback, array $args, int | null $expiration, array $dependencies) : mixed
string
array
Valid PHP callback
array
Arguments for the above function/method
int
null
Cache expiration in seconds
array
Contains the identifiers of caches this one will depend on
mixed
check_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
bool
either 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
mixed
reset()
set(mixed $contents, bool $expiration, array $dependencies)
Actual writing is being done by the _set() method which needs to be extended.
mixed
The content to be cached
bool
The time in seconds until the cache will expire, =< 0 or null means no expiration
array
array 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
bool
success of the operation_set()
Needs to write the object properties: - created - expiration - dependencies - contents - content_handler
handle_reading($contents) : mixed
mixed
handle_writing($contents) : string
string
set_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