wmather / wincache
将Wincache缓存驱动返回给Laravel 5.2+
1.0.2
2020-05-05 15:01 UTC
Requires
- php: >=5.5.9
- laravel/framework: >=5.2
This package is not auto-updated.
Last update: 2024-09-23 14:46:55 UTC
README
安装
此仓库旨在替换从Laravel 5.2中移除的Wincache缓存驱动。因此,它只能在5.2及以上版本中使用。
$ composer require wmather/wincache
或者手动更新你的composer.json文件
{ "require": { "wmather/wincache": "^1.0" } }
安装后,通过将此行添加到config/app.php中的providers数组来注册服务提供者。
Wmather\WinCache\WinCacheStoreServiceProvider::class
在你的config/cache.php中,向stores数组添加一个新条目
'wincache' => [
'driver' => 'wincache',
],
然后在你的.env文件中,将CACHE_DRIVER设置为该别名
CACHE_DRIVER=wincache