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

This package is not auto-updated.

Last update: 2021-01-22 23:31:26 UTC


README

By PIXNET ©

Memcached base for blade cache instead of file base.

install instructions

  1. install by composer

     $ composer require pixnet/laravel-memcached-view
    
  2. add service provider in config/app.php

     'providers' => [
     	//...
         PIXNET\MemcachedView\Providers\ViewServiceProvider::class,
         //...
     ],
    
  3. add alias in config/app.php

     'alias' => [
     	//...
     	'MemcacheStorage'      => PIXNET\MemcachedView\Filesystem\MemcacheStorage::class,
     	//...
     ]
    
  4. 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
     				]
     			]
     		]
     	]
     ]
    
  5. here you go