Interface for cache drivers
| package |
jelix |
|---|---|
| subpackage |
cache |
__construct(array $params)
arraydriver parameters, written in the ini file
decrement(string $key, mixed $decvalue = 1)
stringkey used for storing data in the cache
mixedvalue used to decrement
delete(string $key)
stringkey used for storing data in the cache
flush()
garbage()
get(mixed $key) : mixed
mixedkey or array of keys used for storing data in the cache
mixedthe value or false if failure
increment(string $key, mixed $incvalue = 1)
stringkey used for storing data in the cache
mixedvalue used to increment
replace(string $key, mixed $value, mixed $ttl)
stringkey used for storing data in the cache
mixeddata to replace
mixeddata time expiration. 0 means no expire, use a timestamp UNIX or a delay in secondes which mustn't exceed 30 days i.e 2592000s or a string in date format US
set(string $key, mixed $value, mixed $ttl)
stringkey used for storing data in the cache
mixeddata to store
mixeddata time expiration. 0 means no expire, use a timestamp UNIX or a delay in secondes which mustn't exceed 30 days i.e 2592000s or a string in date format US