Download the PHP package dtkahl/php-simple-redis-cache without Composer
On this page you can find all versions of the php package dtkahl/php-simple-redis-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-simple-redis-cache
PHP simple redis cache
This is a simple cache class for PHP using redis trough predis/predis
.
Dependencies
PHP >= 5.6.0
- a redis server
Installation
Install with Composer:
Usage
Refer namespace:
Create new Cache instance:
Methods
put($key, $value, $time = null)
Put item to cache. (time in seconds)
has($key)
Determinate if key exists in cache.
get($key, $default = null)
Return Item from cache or $default
.
forget($key)
Remove item from cache.
forever($key, $value)
Store item in cache forever.
remember($key, $callback, $time = null)
Return cache item if exists otherwise call $callback
, cache the returned value and return it.
All versions of php-simple-redis-cache with dependencies
PHP Build Version
Package Version
The package dtkahl/php-simple-redis-cache contains the following files
Loading the files please wait ....