MemCachier PHP Usage Example
PHP CSS JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
public Restructure source code. Apr 22, 2014
.gitignore Add in composer support. Apr 22, 2014
LICENSE add license Jun 2, 2013
composer.json Change over to use php-memcached. Apr 22, 2014

MemCachier PHP Example App

This is an example PHP app that uses MemCachier to cache prime number computations.

You can view a working version of this app here that uses MemCachier on Heroku. Running this app on your local machine in development will work as well, although you'll need to install a local memcached server. MemCachier is currently only available with various cloud providers.

Deploy to Heroku

You can deploy this app yourself to Heroku to play with.



This example uses the PHP Memcached client to connect with MemCachier. This is our recommended client, it supports the full protocol and has great performance.

We also support the MemCachier\MemcacheSASL PHP client to connect to and interact with MemCachier. We highly recommend the PHP Memcached client over MemcacheSASL though as MemcacheSASL doesn't support working with more than one server.


The application is setup to work on Heroku or another cloud platform that the MemCachier caching service is available on. However, you can run locally against memcached by changing the server and authentication data. Then simply run:

$ php -S localhost:3000 -t .

Get involved!

We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.

Please report bugs via the github issue tracker.

Master git repository:

  • git clone git://


This library is BSD-licensed.