RedisModel.php 399 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace battery\portal\model;
  3. use think\cache\driver\Redis;
  4. class RedisModel extends Redis
  5. {
  6. protected $options = [
  7. 'host' => 'localhost',
  8. 'port' => 6379,
  9. 'password' => '',
  10. 'select' => 0,
  11. 'timeout' => 0,
  12. 'expire' => 0,
  13. 'persistent' => false,
  14. 'prefix' => 'battery_',
  15. ];
  16. }