Registry / utility / psr-simple-cache

psr-simple-cache

JSON →
library3.0.0phppackagistunverified

Common interfaces for simple caching as defined by PSR-16.

composer require psr/simple-cache
INSTALL
IMPORT
SIG · PSR-SIMPLE-CACHE
P
psr-simple-cache
utilityphpv3.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CacheInterface
use Psr\SimpleCache\CacheInterface;

Implement the PSR-16 CacheInterface for a simple cache.

use Psr\SimpleCache\CacheInterface; // Implement or use a concrete cache class class MyCache implements CacheInterface { public function get($key, $default = null) { return $default; } public function set($key, $value, $ttl = null) { return true; } public function delete($key) { return true; } public function clear() { return true; } public function getMultiple($keys, $default = null) { return []; } public function setMultiple($values, $ttl = null) { return true; } public function deleteMultiple($keys) { return true; } public function has($key) { return false; } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
psr-simple-cache — pip install psr-simple-cache · libregistry