Null Adapter (nullStore)#
Factory: Cache::nullStore()
No-op adapter that never persists values.
Behavior:
set()returns trueget()always misses unless default/callable path is usedremember()recomputes every call
Useful for disabling caching without changing calling code.
Example#
use Infocyph\CacheLayer\Cache\Cache;
$cache = Cache::nullStore();
$cache->set('foo', 'bar');
$value = $cache->get('foo', 'fallback'); // "fallback"