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

ActiveLibrary[Caching](/categories/caching)

ceus-media/cache
================

0.6.1(1y ago)03.1k6GPL-3.0+PHPPHP ^8.1CI failing

Since Mar 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/CeusMedia/Cache)[ Packagist](https://packagist.org/packages/ceus-media/cache)[ RSS](/packages/ceus-media-cache/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (8)Versions (17)Used By (6)

Ceus Media Cache
================

[](#ceus-media-cache)

A caching library for PHP, implementing both PSR-6 and PSR-16.

[PSR-6: Cache Interface](https://www.php-fig.org/psr/psr-6/)[PSR-16: Simple Cache](https://www.php-fig.org/psr/psr-16/)

This library is a storage abstraction layer, which can be used as a cache client.

It provides CRUD access to several storage backends.

[![Branch](https://camo.githubusercontent.com/38bc7fb86941ba6feecbe484e25bc5f14171a7d1381cc23cd10bcd2365ab4caa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4272616e63682d302e362e782d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/38bc7fb86941ba6feecbe484e25bc5f14171a7d1381cc23cd10bcd2365ab4caa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4272616e63682d302e362e782d626c75653f7374796c653d666c61742d737175617265)[![Release](https://camo.githubusercontent.com/d3ae9b7ad827a1f8862db1c7e442ce821a83a701bd7caaea4f81dfb4edad8aeb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656c656173652d302e362e302d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/d3ae9b7ad827a1f8862db1c7e442ce821a83a701bd7caaea4f81dfb4edad8aeb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656c656173652d302e362e302d626c75653f7374796c653d666c61742d737175617265)[![PHP version](https://camo.githubusercontent.com/7ebb0279547d526a54d318d9ab47d214fc6a36936050d77b00e120c3ce9db3f1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e312d626c75653f7374796c653d666c61742d73717561726526636f6c6f723d373737424234)](https://camo.githubusercontent.com/7ebb0279547d526a54d318d9ab47d214fc6a36936050d77b00e120c3ce9db3f1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e312d626c75653f7374796c653d666c61742d73717561726526636f6c6f723d373737424234)[![PHPStan level](https://camo.githubusercontent.com/0f5b0f211d531faabcbc5e07fe8722b251b44d5a85610a95f80580c9c428d919/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e5f6c6576656c2d382b7374726963742d6461726b677265656e3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/0f5b0f211d531faabcbc5e07fe8722b251b44d5a85610a95f80580c9c428d919/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e5f6c6576656c2d382b7374726963742d6461726b677265656e3f7374796c653d666c61742d737175617265)[![Monthly downloads](https://camo.githubusercontent.com/ce646e8fd4a525fdc59b496e1e7ef44c97c3b0ed248077f03850f9ecd6eb12e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636575732d6d656469612f63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ceus-media/cache)[![Package version](https://camo.githubusercontent.com/7bca41d5e2466e969200fbf09d7590aa1032d0733059acf103e2096997bc0fa0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636575732d6d656469612f63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ceus-media/cache)[![License](https://camo.githubusercontent.com/69fd994ec9450d3bca32bc07399961f16f131bf02608085b4c978001ed33df23/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636575732d6d656469612f63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ceus-media/cache)

About
-----

[](#about)

This library is a storage abstraction layer, which can be used as a cache client.

It provides CRUD access to several storage backends.

### Backends

[](#backends)

You can use this layer to store and read information using these backends:

- **Database:** any database supported by PDO
- **Folder:** local files
- **IniFile:** pairs within a INI file
- **JsonFile:** pairs within a JSON file
- **Memcache:** pairs within local or remote Memcache server
- **Memory:** pairs within local memory, not persistent
- **Noop:** dummy cache without any function, fallback if no other cache backend is available, yet
- **Redis:** pairs within local or remote Redis server
- **SerialFile:** pairs within a local PHP serial file
- **SerialFolder:** PHP serial files within a local folder
- **Session:** pairs within the HTTP session

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

[](#installation)

This library is available as composer package:

```
composer require ceus-media/cache

```

Of cource, you will need to use composer autoloader:

```
