ringzhu/cache-laravel-sanctum
最新稳定版本:0.3.0
Composer 安装命令:
composer require ringzhu/cache-laravel-sanctum
包简介
Sanctum use cache to retrieve token
README 文档
README
Let Laravel Sanctum Use Cache to Retrieve Tokens
Laravel Sanctum executes 3 database queries for every HTTP request.
This package wraps the default PersonalAccessToken model, uses cache to retrieve the personal_access_token and tokenable model. This reduces 2 queries for most requests.
Installation
You can install the package via composer:
composer require ringzhu/cache-laravel-sanctum
Usage
Once you have this package in your project, Sanctum tokens will be retrieved through cache automatically. Redis cache is recommended.
统计信息
- 总下载量: 71
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-11