PHPackages                             dealnews/caching - 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. dealnews/caching

ActiveLibrary

dealnews/caching
================

Caching PHP Library (Memcache, Redis, etc.)

2.6.0(1mo ago)19BSD-3-ClausePHPPHP ^8.2CI passing

Since Jun 12Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/dealnews/caching)[ Packagist](https://packagist.org/packages/dealnews/caching)[ RSS](/packages/dealnews-caching/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (10)Versions (9)Used By (0)

PHP Caching Library Wrapper
===========================

[](#php-caching-library-wrapper)

This library provides a standard caching interface and provides classes for Memcached and Redis which implement the interface. We created this because we were moving between different caching services and wanted a unified interface.

Todo
----

[](#todo)

- Add PSR-6 and/or PSR-16 compatible classes

Example
-------

[](#example)

```
; config.ini in your app base directory

[caching.memcache]
caching.memcache.app.servers = 10.0.0.1:11211,10.0.0.2:11211

[caching.redis]
caching.redis.sessions.servers = 10.0.0.3,10.0.0.4
; supports redis auth and other options that the
; predis/predis library supports such as sentinel replication
caching.redis.sessions.username = someuser
caching.redis.sessions.password = XXXXXXXX
```

```
