tposcic/laravel-passport-cache-token

使laravel/passport令牌可缓存。源自https://github.com/overtrue/laravel-passport-cache-token

2.2.1 2021-09-09 12:46 UTC

This package is auto-updated.

Last update: 2024-09-09 19:24:15 UTC


README

使laravel/passport令牌可缓存。

安装

$ composer require tposcic/laravel-passport-cache-token

用法

感谢Laravel的自动包发现机制,您不需要执行任何额外操作。

当然,您也可以自由控制缓存策略,只需在配置文件中配置以下内容

config/passport.php

return [
    //...
    'cache' => [
        // Cache key prefix
        'prefix' => 'passport_',
        
        // The lifetime of token cache,
        // Unit: second
        'expires_in' => 300,
        
        // Cache tags
        'tags' => [],
    ],
];

贡献

您可以通过以下三种方式之一进行贡献

  1. 使用问题跟踪器提交错误报告。
  2. 问题跟踪器上回答问题或修复错误。
  3. 贡献新功能或更新wiki。

代码贡献过程并不非常正式。您只需确保遵循PSR-0、PSR-1和PSR-2编码规范。任何新的代码贡献都必须附有适用的单元测试。

许可

MIT