123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- return
- [
- /**
- * ---------------------------------------------------------
- * Default
- * ---------------------------------------------------------
- *
- * Default configuration to use.
- */
- 'default' => 'localhost',
- /**
- * ---------------------------------------------------------
- * Configurations
- * ---------------------------------------------------------
- *
- * You can define as many Redis configurations as you want.
- *
- * host : IP address or hostname of the Redis server.
- * port : Port of the Redis server.
- * persistent: (optional) Set to true to make the connection persistent.
- * password : (optional) Password of the Redis server.
- * database : (optional) Database index to use for the connection.
- */
- 'configurations' =>
- [
- 'localhost' =>
- [
- 'host' => 'localhost',
- 'port' => 6379,
- 'persistent' => false,
- 'password' => '',
- 'database' => 0,
- ],
- 'cache' =>
- [
- 'host' => 'localhost',
- 'port' => 6379,
- 'persistent' => false,
- 'password' => '',
- 'database' => 1,
- ],
- 'session' =>
- [
- 'host' => 'localhost',
- 'port' => 6379,
- 'persistent' => false,
- 'password' => '',
- 'database' => 2,
- ],
- ],
- ];
|