CommonPHP Cache provides simple driver-based caching support for CommonPHP applications. It defines cache contracts and manager behavior while allowing storage implementations such as memory, filesystem, database, Redis, or Symfony-backed cache drivers to be plugged in separately.
The package is intended to make common cache operations easy to use while keeping storage details behind focused drivers.
- PHP
^8.5 comphp/runtime:^0.3psr/simple-cacheif PSR-16 support is enabled
Once this package is available through your Composer repositories, install it with:
composer require comphp/cache<?php
// TODO: Write usageThis package should expose a simple cache API backed by driver implementations. Concrete storage integrations such as Symfony Cache, filesystem cache, database cache, Redis, or Memcached should live in driver packages.
Driver errors, invalid keys, serialization failures, and storage failures should throw CommonPHP cache exceptions rather than returning ambiguous false values.
MIT. See LICENSE.md.