pixnet / laravel-memcached-view by arrack

This is a package for laravel 5 to replace filesystem with memcached for view
269
3
50
Package Data
Maintainer Username: arrack
Maintainer Contact: tech@pixnet.tw (Tech)
Package Create Date: 2016-09-21
Package Last Update: 2017-06-05
Language: PHP
License: MIT
Last Refreshed: 2024-04-23 03:10:07
Package Statistics
Total Downloads: 269
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 3
Total Watchers: 50
Total Forks: 2
Total Open Issues: 2

LaravelMemcachedView

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