_init()
call()
delete()
delete_all()
forge()
get()
set()
_init()
call(mixed $identifier, string | array $callback, array $args, int $expiration, array $dependencies) : mixed
mixed
The identifier of the cache, can be anything but empty
string
array
Valid PHP callback
array
Arguments for the above function/method
int
Cache expiration in seconds
array
Contains the identifiers of caches this one will depend on (not supported by all drivers!)
mixed
delete(mixed $identifier)
Actual operation handled by delete() call on storage driver class
mixed
The identifier of the cache, can be anything but empty
delete_all($section, $driver) : bool
null|string
null|string
bool
forge(mixed $identifier, array $config) : \Fuel\Core\Cache_Storage_Driver
mixed
The identifier of the cache, can be anything but empty
array
Either an array of settings or the storage driver to be used
\Fuel\Core\Cache_Storage_Driver
The new cache objectget(mixed $identifier, bool $use_expiration) : mixed
Actual reading is being done by the _get() method which needs to be extended.
mixed
The identifier of the cache, can be anything but empty
bool
mixed
set(mixed $identifier, mixed $contents, bool $expiration, array $dependencies) : \Fuel\Core\Cache_Storage_Driver
Actual writing is being done by the _set() method which needs to be extended.
mixed
The identifier of the cache, can be anything but empty
mixed
The content to be cached
bool
The time in seconds until the cache will expire, =< 0 or null means no expiration
array
Contains the identifiers of caches this one will depend on (not supported by all drivers!)
\Fuel\Core\Cache_Storage_Driver
The new Cache object