pextras/psr16-namespaced-cache

Namespaced PSR-16 cache

0.1.1 2020-03-08 17:53 UTC

This package is auto-updated.

Last update: 2024-04-09 03:37:48 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);