|
StormCache
An advanced library to extend and handle PECL-Memcached.
|

Lightweight, robust wrapper around PECL-Memcached that adds pool management, optional encryption, and namespace-based expiration to simplify caching in PHP applications.
Author: David Carlos Manuelda (StormByte)
If you manage dependencies with Composer, prefer installing a packaged release when available. Otherwise you can include the library directly from the lib/ folder:
See lib/StormCache.php for the main implementation and Usage.php for examples.
Example: minimal usage with the default pool.
Advanced: create and configure named pools, enable encryption, or bind items to namespaces. See lib/StormCache.php and the docs/ folder for full API documentation.
Namespaces allow grouping related keys so they can be expired together. Example:
The library throws exceptions for misconfiguration (missing pools, encryption problems, etc.). Wrap Get/Set calls in try/catch when you need to handle those cases explicitly; otherwise you can catch Exception as a fallback and fall back to your primary data source.
API documentation is available in the docs/ folder generated by Doxygen. Open docs/index.html in your browser for full class and member references.
Contributions and bug reports are welcome. Please open issues or pull requests in the repository. Start by running examples in Usage.php and the included docs.
This project is licensed under the MIT License — see LICENSE.md for details.
For questions or support contact: Storm.nosp@m.Byte.nosp@m.@gmai.nosp@m.l.co.nosp@m.m