Download the PHP package silviooosilva/cacheer-php without Composer
On this page you can find all versions of the php package silviooosilva/cacheer-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download silviooosilva/cacheer-php
More information about silviooosilva/cacheer-php
Files in silviooosilva/cacheer-php
Package cacheer-php
Short Description CacheerPHP is a minimalist package for caching in PHP, offering a simple interface for storing and retrieving cached data using multiple backends.
License MIT
Homepage https://github.com/silviooosilva
Informations about the package cacheer-php
CacheerPHP
CacheerPHP is a minimalist PHP caching library. Version 4 brings a more robust API, optional compression and encryption and support for multiple backends including files, databases and Redis.
Features
- Multiple storage drivers: file system, databases (MySQL, PostgreSQL, SQLite), Redis and in-memory arrays.
- Customizable expiration: define precise TTL (Time To Live) values.
- Automatic and manual flushing: clean cache directories with
flushAfter
or on demand. - Namespaces: group entries by category for easier management.
- Flexible output formatting: return cached data as JSON, arrays, strings or objects.
- Compression & encryption: reduce storage footprint and secure cache contents.
- OptionBuilder: fluent builder that helps configure drivers without typos (currently for file driver).
- Advanced logging and statistics: monitor hits/misses and average times (coming soon).
Requirements
- PHP 8.0+
- Optional extensions: PDO drivers for MySQL, PostgreSQL or SQLite
- Redis server and
predis/predis
if using the Redis driver
Installation
Install via Composer:
Configuration
Copy the example environment file and adjust the settings for your environment:
Environment variables control database and Redis connections. See Configuration for the full list.
Quick start
Documentation
- Storing and retrieving cached data
- Customizable cache expiration
- Cache flushing and cleaning
- Namespace support for cache organization
- Automatic cleaning of the
flushAfter
cache directory - API Response Cache
- Custom Data Output (
JSON
) - Custom Data Output (
Array
) - Custom Data Output (
String
) - Upgrade Guide for Version 2.0.0
- API Reference
- API Reference - Cache Functions
Additional examples are available in the Examples
directory.
Testing
After installing dependencies, run the test suite with:
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
License
CacheerPHP is open-sourced software licensed under the MIT license.
Support
If this project helps you, consider buying the maintainer a coffee.
All versions of cacheer-php with dependencies
vlucas/phpdotenv Version ^5.6
predis/predis Version ^2.3
ext-pdo Version *
ext-openssl Version *
ext-zlib Version *