2017 © Pedro Peláez
 

yii2-extension yii-memcached

Memcached Session & Cache for Craft3 / Yii2 on fortrabbit

image

fortrabbit/yii-memcached

Memcached Session & Cache for Craft3 / Yii2 on fortrabbit

  • Tuesday, June 19, 2018
  • by ostark
  • Repository
  • 2 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Craft CMS memcached enabler

This yii-extension is a memcached drop in replacement for sessions, cache and mutex. The file Session handler and the file Cache driver are getting replaced to work with Memcache without the need for further configuration for Pro Apps hosted on fortrabbit., (*1)

Requirements

  • Craft CMS (Version 3, 4, 5)
  • A Professional App on fortrabbit (see below for other hosting providers)

Install

  1. Install the extension with Composer composer require fortrabbit/yii-memcached
  2. Deploy the composer.json and composer.lock file with Git
  3. That's it

Non-fortrabbit environments

Provide the following ENV vars, if your application is not running on fortrabbit:, (*2)

  • MEMCACHE_COUNT (int, number of Memcached servers)
  • MEMCACHE_HOST1 (host name of first Memcached server)
  • MEMCACHE_PORT1 (port of first Memcached server)
  • MEMCACHE_HOST(n) (host name of nth Memcached server)
  • MEMCACHE_PORT(n) (port of nth Memcached server)

Good to know

  • Read the fortrabbit Memcache help why this is mandatory in multi node environments
  • This is not a Craft CMS plugin but an extension for the underlying Yii framework
  • This is not required for Universal Apps hosted on fortrabbit, since there is no Memcache and the file system is persistent

The Versions

19/06 2018

dev-master

9999999-dev

Memcached Session & Cache for Craft3 / Yii2 on fortrabbit

  Sources   Download

MIT

The Requires

 

cache yii2 memcache caching memcached session craftcms

19/06 2018

1.0.0

1.0.0.0

Memcached Session & Cache for Craft3 / Yii2 on fortrabbit

  Sources   Download

MIT

The Requires

 

cache yii2 memcache caching memcached session craftcms