0.1.2 2020-04-14 14:04 UTC

This package is auto-updated.

Last update: 2024-11-09 00:10:47 UTC


README

Example

use Stash\{
	Item,
	RedisPool
};

$redis = new Redis;
$pool = new RedisPool($redis);

$item = new Item('my-key', 'some data');
$item->expiresAfter(3600); // 1 hour

$pool->save($item);

$item = $pool->getItem('my-key');
echo $item->get(); // some data
echo $item->isHit(); // true