0.1.2 2020-04-14 14:04 UTC

This package is auto-updated.

Last update: 2024-09-08 23:47:21 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