Sometimes we need a way to share data between scripts. However, doing so needs some setups like using MySQL as a temp. data storage, or setting up a file for storing data or use something like Memcached, APC or Redis to help. But it’s complicated when these solutions are used.
In order to solve these problems, I created a PHP class that can integrate these methods and reduce development pain. (Also, it’s originally a part of libSSE, a library for Server-sent Events.)
The code above has no dependences to libSSE itself so I decided to released it as a separate module.
I hope this can help you.