Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (26 sloc) 1.18 KB

Redis

Implements the CacheInteface using as redis.io <http://www.redis.io as the cache backend.

Requires REDIS extension.

__construct

__construct($host, $port, $timeout)
$host:Point to the host where redis is listening for connections. This parameter may also specify other transports like unix:///path/to/redis.sock to use UNIX domain sockets - default 127.0.0.1.
$port:Point to the port where redis is listening for connections - default 6379.
$timeout:Value in seconds which will be used for connecting to the daemon. Think twice before changing the default value of 1 second - you can lose all the advantages of caching if your connection is too slow.

Example

.. seealso::

   `Cache Examples <https://github.com/nbari/DALMP/tree/master/examples/cache>`_.