public setServers ($servers)
Set the server list directly. Used to handle full url-based connection strings with usernames and passwords. Note: Usernames require Redis 6.0+.
public addServer ($server, $port = 6379, $password = false)
Emulates Memcache::addServer
via connect
. Also adds
serialization via PHP's serialize/unserialize functions.
Provides a Memcache-compatible wrapper for the Redis PHP extension. For more info, see:
https://github.com/phpredis/phpredis
This allows you to use Redis as a drop-in replacement for Memcache as a cache store in Elefant.
To enable, edit the
conf/config.php
file and find the[Cache]
section. Change thebackend
value toredis
and add your Redis server info to theserver[]
setting in the same section.