keruald / cache
Abstraction layer for cache. Compatible PSR-16.
0.1.0
2023-07-04 21:27 UTC
Requires
- keruald/omnitools: ^0.11
Requires (Dev)
- phpunit/phpunit: ^10.2
Suggests
- ext-memcached: *
- ext-redis: *
Provides
- psr/simple-cache-implementation: 1.0|2.0|3.0
README
This library offers a simple layer of abstraction for cache operations, with concrete implementations.
This cache implementation is compatible with PSR-16.
This cache implementation is NOT compatible with PSR-6.
Configuration
To get a cache instance, you need to pass configuration as an array.
The properties and values depend on the engine you want to use.
Memcached
Redis
Void
This cache allows unit tests or to offer a default cache, when no other configuration is offered.