pixnet / laravel-memcached-view by arrack

This is a package for laravel 5 to replace filesystem with memcached for view
272
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-12-19 03:19:50
Package Statistics
Total Downloads: 272
Monthly Downloads: 1
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