PHPackages                             xes/pcache - 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. xes/pcache

ActiveLibrary[Caching](/categories/caching)

xes/pcache
==========

Wrapper for Predis to add GetOrSet

1.2(10y ago)0124PHP

Since Jun 13Pushed 10y ago1 watchersCompare

[ Source](https://github.com/dan1elhughes/pcache)[ Packagist](https://packagist.org/packages/xes/pcache)[ Docs](https://github.com/dan1elhughes/pcache)[ RSS](/packages/xes-pcache/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (7)Dependencies (1)Versions (9)Used By (0)

Pcache
======

[](#pcache)

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

[](#installation)

```
composer require xes/pcache

```

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

$predis = new Predis\Client();
$cache = new xes\Pcache($predis);

$keyname = 'someKey';
$TTL = 60;

echo $cache->get($keyname, $TTL, function() {
	// Some slow function such as a database call
	sleep(1);
	return 'hello world';
});
```

###  Health Score

29

—

LowBetter than 58% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity68

Established project with proven stability

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 ~1 days

Total

8

Last Release

4007d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/xes-pcache/health.svg)

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

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.1k2.2k](/packages/unopim-unopim)[rhubarbgroup/redis-cache

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

52799.8k1](/packages/rhubarbgroup-redis-cache)[symfony-bundles/redis-bundle

Symfony Redis Bundle

291.2M6](/packages/symfony-bundles-redis-bundle)[pdffiller/qless-php

PHP Bindings for qless

29113.7k1](/packages/pdffiller-qless-php)[millipress/millicache

WordPress Full-Page Cache based on Rules &amp; Flags. Delivers flexible, scalable caching workflows backed by Redis and ValKey in-memory stores.

622.0k2](/packages/millipress-millicache)

PHPackages © 2026

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