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.
This example uses the PHPMemcacheSASL PHP client to connect to and interact with MemCachier.
The Memcached PHP client that comes distributed with PHP also works well with MemCachier.
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 .
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://github.com/memcachier/examples-php.git
This library is BSD-licensed.