token.php 620 B

123456789101112131415161718192021222324252627
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of Hyperf.
  5. *
  6. * @link https://www.hyperf.io
  7. * @document https://hyperf.wiki
  8. * @contact group@hyperf.io
  9. * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
  10. */
  11. use function Hyperf\Support\env;
  12. return [
  13. 'default' => [
  14. // 驱动方式
  15. 'type' => env('TOKEN_TYPE', 'Redis'),
  16. // 缓存前缀
  17. 'key' => env('TOKEN_KEY', 'BgCYelhLFAN9a54u1tyPk67cMRZs3vni'),
  18. // 加密方式
  19. 'hash_algo' => 'ripemd160',
  20. // 缓存有效期 0表示永久缓存
  21. 'expire' => 0,
  22. ]
  23. ];