PHPackages                             coseyo/vercache - 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. coseyo/vercache

ActiveLibrary

coseyo/vercache
===============

version cache base on redis

00PHP

Since Apr 21Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Vercache
========

[](#vercache)

version cache by php

Example below
-------------

[](#example-below)

```
$cache = new Vercache([
	'host' => '127.0.0.1',
	'port' => '11211',
	'timeout' => 5,
	'expire' => 900,
	'prefix' => 'test',
]);
$version = 'version';
$prefix = 'prefix';
$versionKey = $cache->getVersionKey([
	'user' => 'seyo',
	'phone' => '1234',
	'page' => 1,
], $version, ['user', 'phone']);

$data = $cache->getCache($prefix, 'key_aa', $versionKey);
if ($data) {
	var_dump('get cache');
	var_dump($data);
} else {
	var_dump('no cache');
	$data = 'value_bb';
	$cache->setCache($prefix, 'key_aa', $data, $versionKey);
}

var_dump('incrVersionNum');
$cache->incrVersionNum($prefix, $versionKey);
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![coseyo](https://avatars.githubusercontent.com/u/938789?v=4)](https://github.com/coseyo "coseyo (9 commits)")

### Embed Badge

![Health badge](/badges/coseyo-vercache/health.svg)

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

PHPackages © 2026

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