Download the PHP package stefangabos/zebra_cache without Composer
On this page you can find all versions of the php package stefangabos/zebra_cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stefangabos/zebra_cache
More information about stefangabos/zebra_cache
Files in stefangabos/zebra_cache
Package zebra_cache
Short Description A lightweight and flexible PHP caching library with support for file, Redis, and Memcached storage backends.
License LGPL-3.0-only
Homepage https://github.com/stefangabos/Zebra_Cache
Informations about the package zebra_cache

Zebra Cache 
A lightweight and flexible PHP caching library with support for file, Redis, and Memcached storage backends.
This library provides a unified interface for caching data, allowing the use of various storage backends like file-based caching, Redis, Memcached, or custom implementations.
It supports common caching operations such as storing, retrieving and deleting data, as well as checking for the existence of a cache entry.
Features
- pluggable architecture for using different storage mechanisms
- flexible key-value caching
- automatic expiration of cache items based on a specified time-to-live (TTL) value
- extensible design allowing developers to integrate new storage backends
- easy-to-use API with consistent behavior across different backends
- support for multiple instances, allowing you to use different cache configurations for different parts of your application
:notebook_with_decorative_cover: Documentation
Check out the awesome documentation!
🎂 Support the development of this project
Your support is greatly appreciated and it keeps me motivated continue working on open source projects. If you enjoy this project please star it by clicking on the star button at the top of the page. If you're feeling generous, you can also buy me a coffee through PayPal or become a sponsor. Thank you for your support! 🎉
Requirements
PHP 7.0.0+
Use version 1.3.2 if you need support for PHP 5.3.0+
Installation
Install via Composer
Initializing the storage engine
Initializing file-based storage:
Initializing Redis-based storage:
Initializing Memcached-based storage:
There are two PHP extensions for working with Memcached: the memcache extension, which is older and less commonly used, and memcached which is generally preferred for better features and compatibility. This library supports both.
Initializing the main library and setting/getting values
Once the storage engine is initialized: