PHPackages                             wyrihaximus/react-cache-ttl-utils - 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. wyrihaximus/react-cache-ttl-utils

ActiveLibrary[Caching](/categories/caching)

wyrihaximus/react-cache-ttl-utils
=================================

00[1 PRs](https://github.com/WyriHaximus/reactphp-cache-ttl-utils/pulls)MakefileCI failing

Since Sep 4Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/WyriHaximus/reactphp-cache-ttl-utils)[ Packagist](https://packagist.org/packages/wyrihaximus/react-cache-ttl-utils)[ RSS](/packages/wyrihaximus-react-cache-ttl-utils/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

TTL utils for @reactphp/cache implementors
==========================================

[](#ttl-utils-for-reactphpcache-implementors)

[![Build Status](https://camo.githubusercontent.com/bb569b5bae066d68c1da2a67c85a1847e475ce439feea580da2e3d198fee7798/68747470733a2f2f7472617669732d63692e6f72672f57797269486178696d75732f72656163747068702d63616368652d74746c2d7574696c732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/WyriHaximus/reactphp-cache-ttl-utils)[![Latest Stable Version](https://camo.githubusercontent.com/c4798a6cd898fe96fcbcfbe74f71541ce231ba0510db1c85f992bcb545151c25/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d63616368652d74746c2d7574696c732f762f737461626c652e706e67)](https://packagist.org/packages/WyriHaximus/react-cache-ttl-utils)[![Total Downloads](https://camo.githubusercontent.com/bc9d8f919edbdbf3204d7339d30fbe002b7e88f449860962889f2ab320699d28/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d63616368652d74746c2d7574696c732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/WyriHaximus/react-cache-ttl-utils)[![Code Coverage](https://camo.githubusercontent.com/383dbb40ef232f2daef4e6dd5cc4a2d5464e865e99039ab4c1f68833087e917a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57797269486178696d75732f72656163747068702d63616368652d74746c2d7574696c732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/WyriHaximus/reactphp-cache-ttl-utils/?branch=master)[![License](https://camo.githubusercontent.com/48a053db9157cbf88ce11cb4b749faaa5177fef15860752524edfe08053f4df4/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d63616368652d74746c2d7574696c732f6c6963656e73652e706e67)](https://packagist.org/packages/WyriHaximus/react-cache-ttl-utils)[![PHP 7 ready](https://camo.githubusercontent.com/42718cddeb81248571079e9a79343ed0f98fbc659d6f1cf0bbf642e84f6d6cbf/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f57797269486178696d75732f72656163747068702d687474702d6d6964646c65776172652d636c6561722d626f64792f62616467652e737667)](https://travis-ci.org/WyriHaximus/reactphp-http-middleware-clear-body)

Install
=======

[](#install)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.

```
composer require wyrihaximus/react-cache-ttl-utils

```

This middleware takes care of session handling. It uses [`react/cache`](https://reactphp.org/cache/) for storage or any cache handler implementing [`React\Cache\CacheInterface`](https://github.com/reactphp/react/wiki/Users#cache-implementations).

License
=======

[](#license)

The MIT License (MIT)

Copyright (c) 2018 Cees-Jan Kiewiet

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance45

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/147145?v=4)[Cees-Jan Kiewiet](/maintainers/WyriHaximus)[@WyriHaximus](https://github.com/WyriHaximus)

---

Top Contributors

[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (8 commits)")

---

Tags

hacktoberfest

### Embed Badge

![Health badge](/badges/wyrihaximus-react-cache-ttl-utils/health.svg)

```
[![Health](https://phpackages.com/badges/wyrihaximus-react-cache-ttl-utils/health.svg)](https://phpackages.com/packages/wyrihaximus-react-cache-ttl-utils)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

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