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 .
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.