journey / cache
A simpler string cache interface than PSR-6.
Installs: 444
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/journey/cache
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2025-09-28 07:21:35 UTC
README
What
Journey cache is a very simple string caching interface. It is a much simpler alternative to the PSR-6 interface, and mostly useful for basic string cache. The interface comes bundled with a local file cache (LocalAdapter) and a memcached (MemcachedAdapter) implementation.
Interface
interface CacheAdapterInterface { public function set($key, $value, $expiration = 0); public function get($key); public function delete($key); public function clear(); }
It's simple enough you can probably guess how to write your own adapters, but if you want more documentation, read the interface.
Note: The PSR-6 interface is fantastic, but sometimes you just don't need to be as verbose or robust as it requires. This fills that gap.