pixnet / laravel-memcached-view
This is a package for laravel 5 to replace filesystem with memcached for view
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-12-21 20:39:05 UTC
README
By PIXNET ©
Memcached base for blade cache instead of file base.
install instructions
-
install by composer
$ composer require pixnet/laravel-memcached-view
-
add service provider in config/app.php
'providers' => [ //... PIXNET\MemcachedView\Providers\ViewServiceProvider::class, //... ],
-
add alias in config/app.php
'alias' => [ //... 'MemcacheStorage' => PIXNET\MemcachedView\Filesystem\MemcacheStorage::class, //... ]
-
set up your memcache setting in config/cache.php
return [ // ... 'store' => [ // ... 'memcached' => [ 'driver' => 'memcached', 'servers' => [ [ 'host' => 'YOUR_MEMCACHED_SERVER_IP', 'port' => 'MEMCACHED_PORT', 'weight' => 100 ] ] ] ] ]
-
here you go