PHPackages                             codin/stash - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. codin/stash

ActiveLibrary[Caching](/categories/caching)

codin/stash
===========

0.1.1(4y ago)017MITPHPPHP &gt;=7.4CI failing

Since Mar 8Pushed 4y agoCompare

[ Source](https://github.com/codin/stash)[ Packagist](https://packagist.org/packages/codin/stash)[ RSS](/packages/codin-stash/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

PSR6 Cache Implementation
=========================

[](#psr6-cache-implementation)

[![version](https://camo.githubusercontent.com/c5ad6df18d2f727fec385052a81e37ce684751bd73e3951a9388b587b88fd87c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f636f64696e2f7374617368)](https://camo.githubusercontent.com/c5ad6df18d2f727fec385052a81e37ce684751bd73e3951a9388b587b88fd87c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f636f64696e2f7374617368)[![workflow](https://camo.githubusercontent.com/20b39fb417ac5fd8ab15f55be5db68ffdc13de2548a257248d7dc4fa90c384e0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f636f64696e2f73746173682f436f6d706f736572)](https://camo.githubusercontent.com/20b39fb417ac5fd8ab15f55be5db68ffdc13de2548a257248d7dc4fa90c384e0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f636f64696e2f73746173682f436f6d706f736572)[![license](https://camo.githubusercontent.com/3058c60d83f6303eb8f11f4ca70b8f230f0db7ba037384fe01392831e4a4f93f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f64696e2f7374617368)](https://camo.githubusercontent.com/3058c60d83f6303eb8f11f4ca70b8f230f0db7ba037384fe01392831e4a4f93f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f64696e2f7374617368)

Example

```
use Codin\Stash\{
	Item,
	Adapter\RedisPool
    Adapter\Redis\ConnectionResolver
};

$resolver = new ConnectionResolver(static function () {
    return new Redis();
});
$pool = new RedisPool($resolver);

$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
```

Testing
-------

[](#testing)

```
php bin/phpstan
php bin/phpspec run
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Total

2

Last Release

1565d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/caaa77e482db0b7e6340c815a767adfa0c910d7ad437427a51702a619a202de9?d=identicon)[rwarasaurus](/maintainers/rwarasaurus)

---

Top Contributors

[![kierwils](https://avatars.githubusercontent.com/u/596586?v=4)](https://github.com/kierwils "kierwils (5 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/codin-stash/health.svg)

```
[![Health](https://phpackages.com/badges/codin-stash/health.svg)](https://phpackages.com/packages/codin-stash)
```

###  Alternatives

[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M339](/packages/api-platform-core)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.0M219](/packages/api-platform-metadata)[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1077.3M153](/packages/laminas-laminas-cache)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
