balping/laravel-cached-options
Composer 安装命令:
composer require balping/laravel-cached-options
包简介
Cache wrapper around overtrue/laravel-options
README 文档
README
Simple wrapper around overtrue/laravel-options global options module for Laravel application to provide basic caching functionality.
Installation
First disable auto-discovery for overtrue/laravel-options:
In composer.json add:
"extra": {
"laravel": {
"dont-discover": [
"overtrue/laravel-options"
]
}
}
Then install the package via composer:
composer require balping/laravel-cached-options
Publish configuration and migrations
$ php artisan vendor:publish --provider="Balping\LaravelCachedOptions\CachedOptionsServiceProvider"
Run migrations
$ php artisan migrate
Configuration
In config/cache.php configure a driver that supports tags. Warning! File,
dynamodb, or database drivers are not supported.
In config/options.php you can choose a TTL for cached values. TTL of null means forever.
Usage
Exactly the same way as described in overtrue/laravel-options documentation, but all the values are going to be cached.
License
MIT
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-03-11