pixnet / laravel-memcached-view
这是一个用于laravel 5的包,用memcached替换文件系统以存储视图
1.0.4
2017-03-02 08:41 UTC
Requires
- php: >=5.5.9
- laravel/framework: >5.2
This package is not auto-updated.
Last update: 2024-09-28 19:31:19 UTC
README
由 PIXNET © 提供
以memcached为基础的blade缓存,而不是基于文件。
安装说明
-
通过composer安装
$ composer require pixnet/laravel-memcached-view
-
在config/app.php中添加服务提供者
'providers' => [ //... PIXNET\MemcachedView\Providers\ViewServiceProvider::class, //... ],
-
在config/app.php中添加别名
'alias' => [ //... 'MemcacheStorage' => PIXNET\MemcachedView\Filesystem\MemcacheStorage::class, //... ]
-
在config/cache.php中设置您的memcache配置
return [ // ... 'store' => [ // ... 'memcached' => [ 'driver' => 'memcached', 'servers' => [ [ 'host' => 'YOUR_MEMCACHED_SERVER_IP', 'port' => 'MEMCACHED_PORT', 'weight' => 100 ] ] ] ] ]
-
就这样