File tree Expand file tree Collapse file tree
user_guide_src/source/libraries Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -218,7 +218,14 @@ I/O will negate positive gains by caching. This requires a writable cache direct
218218Memcached Caching
219219=================
220220
221- Multiple Memcached servers can be specified in the cache configuration file.
221+ Memcached servers can be specified in the cache configuration file. Available options are::
222+
223+ public $memcached = [
224+ 'host' => '127.0.0.1',
225+ 'port' => 11211,
226+ 'weight' => 1,
227+ 'raw' => false,
228+ ];
222229
223230For more information on Memcached, please see
224231`https://www.php.net/memcached <https://www.php.net/memcached >`_.
@@ -239,15 +246,16 @@ Redis Caching
239246Redis is an in-memory key-value store which can operate in LRU cache mode.
240247To use it, you need `Redis server and phpredis PHP extension <https://github.com/phpredis/phpredis >`_.
241248
242- Config options to connect to redis server must be stored in the app/Config/redis.php file.
243- Available options are::
244-
245- $config['host'] = '127.0.0.1';
246- $config['password'] = NULL;
247- $config['port'] = 6379;
248- $config['timeout'] = 0;
249- $config['database'] = 0;
249+ Config options to connect to redis server stored in the cache configuration file. Available options are::
250250
251+ public $redis = [
252+ 'host' => '127.0.0.1',
253+ 'password' => null,
254+ 'port' => 6379,
255+ 'timeout' => 0,
256+ 'database' => 0,
257+ ];
258+
251259For more information on Redis, please see
252260`https://redis.io <https://redis.io >`_.
253261
You can’t perform that action at this time.
0 commit comments