pextras/psr16-namespaced-cache

Namespaced PSR-16 cache

Installs: 627

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/pextras/psr16-namespaced-cache

0.1.1 2020-03-08 17:53 UTC

This package is auto-updated.

Last update: 2025-12-09 07:06:28 UTC


README

Build Status

Install

composer require pextras/psr16-namespaced-cache

Usage

// Your PSR-16 cache pool implementing Psr\SimpleCache\CacheInterface 
$cache = new SimpleCache();

$namespaced = new \Pextras\NamespacedCache\NamespacedCache($cache, 'foo');

// NamespacedCache implements Psr\SimpleCache\CacheInterface
$namespaced->get('bar');
$namespaced->set('baz', 123);