PHPackages                             amphp/cache - 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. amphp/cache

ActiveLibrary[Caching](/categories/caching)

amphp/cache
===========

A fiber-aware cache API based on Amp and Revolt.

v2.0.1(2y ago)12839.0M—2.4%16[1 PRs](https://github.com/amphp/cache/pulls)20MITPHPPHP &gt;=8.1CI passing

Since Sep 8Pushed 1w ago5 watchersCompare

[ Source](https://github.com/amphp/cache)[ Packagist](https://packagist.org/packages/amphp/cache)[ Docs](https://amphp.org/cache)[ GitHub Sponsors](https://github.com/amphp)[ RSS](/packages/amphp-cache/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (18)Used By (20)

amphp/cache
===========

[](#amphpcache)

AMPHP is a collection of event-driven libraries for PHP designed with fibers and concurrency in mind. `amphp/cache` specifically provides a cache interface and multiple implementations of it.

[![Latest Release](https://camo.githubusercontent.com/1e129713c9962ddd65957c2c3ac88c95005051460cbb0db63fc7998790800fc0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f616d7068702f63616368652e7376673f7374796c653d666c61742d737175617265)](https://github.com/amphp/cache/releases)[![MIT License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/amphp/cache/blob/master/LICENSE)

Installation
------------

[](#installation)

This package can be installed as a [Composer](https://getcomposer.org/) dependency.

```
composer require amphp/cache
```

Usage
-----

[](#usage)

### AtomicCache

[](#atomiccache)

### Cache

[](#cache)

```
