config.sample.inc.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. //Copy this file to config.inc.php and make changes to that file to customize your configuration.
  3. $config = array(
  4. 'servers' => array(
  5. array(
  6. 'name' => 'local server', // Optional name.
  7. 'host' => '127.0.0.1',
  8. 'port' => 6379,
  9. 'filter' => '*',
  10. 'scheme' => 'tcp', // Optional. Connection scheme. 'tcp' - for TCP connection, 'unix' - for connection by unix domain socket
  11. 'path' => '' // Optional. Path to unix domain socket. Uses only if 'scheme' => 'unix'. Example: '/var/run/redis/redis.sock'
  12. // Optional Redis authentication.
  13. //'auth' => 'redispasswordhere' // Warning: The password is sent in plain-text to the Redis server.
  14. ),
  15. /*array(
  16. 'host' => 'localhost',
  17. 'port' => 6380
  18. ),*/
  19. /*array(
  20. 'name' => 'local db 2',
  21. 'host' => 'localhost',
  22. 'port' => 6379,
  23. 'db' => 1, // Optional database number, see http://redis.io/commands/select
  24. 'databases' => 1, // Optional number of databases (prevents use of CONFIG command).
  25. 'filter' => 'something:*', // Show only parts of database for speed or security reasons.
  26. 'seperator' => '/', // Use a different seperator on this database (default uses config default).
  27. 'flush' => false, // Set to true to enable the flushdb button for this instance.
  28. 'charset' => 'cp1251', // Keys and values are stored in redis using this encoding (default utf-8).
  29. 'keys' => false, // Use the old KEYS command instead of SCAN to fetch all keys for this server (default uses config default).
  30. 'scansize' => 1000 // How many entries to fetch using each SCAN command for this server (default uses config default).
  31. ),*/
  32. ),
  33. 'seperator' => ':',
  34. // Uncomment to show less information and make phpRedisAdmin fire less commands to the Redis server. Recommended for a really busy Redis server.
  35. //'faster' => true,
  36. // Uncomment to enable HTTP authentication
  37. /*'login' => array(
  38. // Username => Password
  39. // Multiple combinations can be used
  40. 'admin' => array(
  41. 'password' => 'adminpassword',
  42. ),
  43. 'guest' => array(
  44. 'password' => '',
  45. 'servers' => array(1) // Optional list of servers this user can access.
  46. )
  47. ),*/
  48. /*'serialization' => array(
  49. 'foo*' => array( // Match like KEYS
  50. // Function called when saving to redis.
  51. 'save' => function($data) { return json_encode(json_decode($data)); },
  52. // Function called when loading from redis.
  53. 'load' => function($data) { return json_encode(json_decode($data), JSON_PRETTY_PRINT); },
  54. ),
  55. ),*/
  56. // You can ignore settings below this point.
  57. 'maxkeylen' => 100,
  58. 'count_elements_page' => 100,
  59. // Use the old KEYS command instead of SCAN to fetch all keys.
  60. 'keys' => false,
  61. // How many entries to fetch using each SCAN command.
  62. 'scansize' => 1000
  63. );
  64. ?>