redis.php 861 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * This file is part of webman.
  4. *
  5. * Licensed under The MIT License
  6. * For full copyright and license information, please see the MIT-LICENSE.txt
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @author walkor<walkor@workerman.net>
  10. * @copyright walkor<walkor@workerman.net>
  11. * @link http://www.workerman.net/
  12. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  13. */
  14. return [
  15. 'default' => [
  16. 'host' => getenv('REDIS_HOST', '127.0.0.1'),
  17. 'password' => getenv('REDIS_PASSWORD'),
  18. 'port' => getenv('REDIS_PORT', 6379),
  19. 'database' => 0,
  20. ],
  21. 'listing' => [ // 商品上架
  22. 'host' => getenv('REDIS_HOST', '127.0.0.1'),
  23. 'password' => getenv('REDIS_PASSWORD'),
  24. 'port' => getenv('REDIS_PORT', 6379),
  25. 'database' => 1,
  26. ],
  27. ];