A Yii memcache component with SASL support, mainly built for heroku
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CMemCacheSASL.php
MemcacheSASL.php
README.md

README.md

yii-CMemCacheSASL

A Yii memcache component with SASL support, mainly built for heroku.

This component uses ronnywang's PHPMemcacheSASL implementation.

To learn more, read the blog post here: http://aaronfrancis.com/blog/2013/4/9/some-thoughts-about-hosting-yii-on-heroku

'components'=>array(
  'cache'=>array(
    'class'=>'CMemCache',
    'server'=> array(
      'host'=>'mc7.ec2.northscale.net',
      'port'=>11211,
      'password'=>'8WO234qKhb7O8vnm',
      'username'=>'app123367982%40heroku.com'
    ),
  ),
)

Or if on Heroku

'components'=>array(
  'cache'=>array(
    'class'=>'CMemCache',
    'server'=> array(
      'host'=>getenv('MEMCACHE_SERVERS'),
      'port'=>11211,
      'password'=>getenv('MEMCACHE_PASSWORD'),
      'username'=>getenv('MEMCACHE_USERNAME')
    ),
  ),
)

I haven't tested it very much, so please provide feedback if you use it.