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

ActiveLibrary[Caching](/categories/caching)

stougeiro/cache-contract
========================

Minimal cache contract package defining the essential interfaces for a plug-and-play caching layer. Provides a lightweight CacheInterface with basic operations for storing, retrieving, checking, deleting and clearing cached values in modular PHP applications.

v1.0.0(today)01↑2900%MITPHP &gt;=8.2

Since Aug 19Compare

[ Source](https://github.com/stougeiro/cache-contract)[ Packagist](https://packagist.org/packages/stougeiro/cache-contract)[ Fund](https://www.buymeacoffee.com/stougeiro)[ RSS](/packages/stougeiro-cache-contract/feed)WikiDiscussions Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/stougeiro/cache-contract).

###  Release Activity

Cadence

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3516412?v=4)[S.Tougeiro](/maintainers/stougeiro)[@stougeiro](https://github.com/stougeiro)

---

Tags

cachecachinglightweightmodularhigh-performancephp cachecache-layercache-storagecache-contractcache-interfacecache-corecache-operations

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/stougeiro-cache-contract/health.svg)

```
[![Health](https://phpackages.com/badges/stougeiro-cache-contract/health.svg)](https://phpackages.com/packages/stougeiro-cache-contract)
```

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

8.1k789.5M3.1k](/packages/psr-simple-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

445138.3M51](/packages/react-cache)[tedivm/stash

The place to keep your cache.

9634.9M138](/packages/tedivm-stash)[spatie/blink

Cache that expires in the blink of an eye

1675.8M12](/packages/spatie-blink)[nielse63/phpimagecache

Image Cache is a very simple PHP module that accepts an image source and will compress and cache the file, move it to a new directory, and return the cache source for the image.

44613.4k](/packages/nielse63-phpimagecache)[gregwar/cache

A lightweight file-system cache system

1084.6M23](/packages/gregwar-cache)

PHPackages © 2026

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