Skip to content

ad-dc/yii-memcached

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yii2/Craft3 memcached enabler

This yii-extension is a memcached drop in replacement for sessions and cache.

The file Session handler and the file Cache driver gets replaced in fortrabbit environments - it requires the Memcache component on the Professional Stack. Read on why Memcache is mandatory in multi node environments

Install

Require the package:

composer require fortrabbit/yii-memcached

Deploy the composer.json and composer.lock file.

That's it.

Non-fortrabbit environments

If your application does not run on fortrabbit, you need to provide the following ENV vars to make it work:

  • 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)

About

Yii2/Craft3 Memcached enabler

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%