PHPackages                             pspychalski/phpcache - 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. pspychalski/phpcache

ActiveLibrary[Caching](/categories/caching)

pspychalski/phpcache
====================

phpCache is object PHP &gt;=5 cache wrapper that offers similar way of handling various caching mechanisms

1.1.2(10y ago)1291[1 issues](https://github.com/DzikuVx/phpCache/issues)MITPHPPHP &gt;=5.3.0

Since May 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/DzikuVx/phpCache)[ Packagist](https://packagist.org/packages/pspychalski/phpcache)[ RSS](/packages/pspychalski-phpcache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

PhpCache
========

[](#phpcache)

PhpCache is object PHP &gt;=5 cache wrapper that offers similar way of handling various caching mechanisms:

- APC (deprecated)
- Memcached
- Redis
- Filesystem (deprecated)
- Session (deprecated)
- Variable (temporary, not available between requests)

\#Example usage

```
require_once 'PhpCache.php';
\PhpCache\PhpCache::$sDefaultMechanism = 'Redis';
$cache = \PhpCache\Factory::getInstance()->create();

$key = new \PhpCache\CacheKey('myKey');
$cache->set($key, 'Lorem ipsum');
if ($cache->check($key)) {
    var_dump($cache->get($key));
} else {
    var_dump('Data not found');
}

```

\#Methods available for all caching mechanisms:

- set - sets cache value based on provided key
- get - get data from cache based on provided key. Returns false when no data for key
- check - checks if data for provided key is set
- clear - removed data for key
- clearAll - flushes cache

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~78 days

Total

4

Last Release

3781d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/db92ccf8fb8883008206eda68b2605f64a2778459cbbcb05365fdcec87fdf48f?d=identicon)[DzikuVx](/maintainers/DzikuVx)

---

Top Contributors

[![DzikuVx](https://avatars.githubusercontent.com/u/966811?v=4)](https://github.com/DzikuVx "DzikuVx (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pspychalski-phpcache/health.svg)

```
[![Health](https://phpackages.com/badges/pspychalski-phpcache/health.svg)](https://phpackages.com/packages/pspychalski-phpcache)
```

###  Alternatives

[predis/predis-async

Asynchronous version of Predis

366348.4k](/packages/predis-predis-async)[rhubarbgroup/redis-cache

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI.

51795.3k1](/packages/rhubarbgroup-redis-cache)[monospice/laravel-redis-sentinel-drivers

Redis Sentinel integration for Laravel and Lumen.

103830.5k](/packages/monospice-laravel-redis-sentinel-drivers)[jamescauwelier/psredis

Sentinel client for the popular php redis client

77392.9k5](/packages/jamescauwelier-psredis)[cache/predis-adapter

A PSR-6 cache implementation using Redis (Predis). This implementation supports tags

272.6M13](/packages/cache-predis-adapter)[symfony-bundles/redis-bundle

Symfony Redis Bundle

271.1M5](/packages/symfony-bundles-redis-bundle)

PHPackages © 2026

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