kel tie cochrane / themosis-cache
1.0.5
2018-02-01 15:39 UTC
Requires
- php: >=7.0
- composer/installers: ~1.2
- djgadd/themosis-illuminate: ^1.0
- illuminate/cache: ^5.4
- themosis/framework: ^1.3
This package is not auto-updated.
Last update: 2022-02-01 13:05:51 UTC
README
这是一个用于Themosis框架的包,实现了带有WP_Object_Cache后端驱动的illuminate/cache。需要设置keltiecochrane/themosis-illuminate的ConfigServiceProvider。
安装
通过composer安装:- composer require keltiecochrane/themosis-cache
将config/cache.config.php复制到您的theme/resources/config目录,并按需进行配置。
在您的theme/resources/config/providers.php文件中注册服务提供者:- KeltieCochrane\Cache\CacheServiceProvider::class,
可选地,在您的theme/resources/config/theme.php文件中注册别名:- 'Cache' => KeltieCochrane\Cache\CacheFacade::class,
请记住,它使用WP_Object_Cache,因此您需要安装一个对象缓存插件(如https://wordpresstheme.cn/plugins/redis-cache/)。
示例
Cache::get('some-cache-key');
有关更多信息,请参阅Laravel文档。
助手函数
以下(附加)助手函数可用:-
- cache
有关更多信息,请参阅Laravel文档。
支持
此插件按原样提供,尽管我们将尽力提供帮助。
贡献
我们将鼓励并非常感激任何贡献,您可以通过以下方式做出贡献:-
- 报告错误
- 建议功能
- 发送拉取请求