Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ManagerFactory.php tag可配置 #17

Open
jonny77 opened this issue Jun 18, 2021 · 1 comment
Open

ManagerFactory.php tag可配置 #17

jonny77 opened this issue Jun 18, 2021 · 1 comment

Comments

@jonny77
Copy link

jonny77 commented Jun 18, 2021

private function resolveBlacklist(): Blacklist
{
$storageClass = $this->config['blacklist_storage'] ?? HyperfCache::class;
$storage = make($storageClass, [
'tag' => 'jwt.default',
]);
$gracePeriod = $this->config['blacklist_grace_period'];
$refreshTtl = $this->config['refresh_ttl'];

    return make(Blacklist::class, compact('storage', 'gracePeriod', 'refreshTtl'));
} 

这个方法中的 'tag' => 'jwt.default', 建议改成可配置项 . 改成 jwt:default: 即可.

数据多起来的时候将会不便观看
image

@ericyzhu
Copy link
Member

下个版本增加

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants