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

ActiveLibrary[Caching](/categories/caching)

yggverse/cache
==============

Cache tools for PHP applications

0.4.1(2y ago)185MITPHPPHP &gt;=8.1

Since Aug 9Pushed 2y ago2 watchersCompare

[ Source](https://github.com/YGGverse/cache-php)[ Packagist](https://packagist.org/packages/yggverse/cache)[ RSS](/packages/yggverse-cache/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

cache-php
=========

[](#cache-php)

Cache tools for PHP applications

### Memory

[](#memory)

Extends [PHP memcached](https://www.php.net/manual/en/book.memcached.php)

#### Init

[](#init)

```
$memory = new \Yggverse\Cache\Memory(

  'localhost',  // memcached server host, localhost by default
  11211,        // memcached server port, 11211 by default

  'my_app',     // application namespace
  3600 + time() // cache time by default
);

```

#### Supported methods

[](#supported-methods)

##### Memory::set

[](#memoryset)

##### Memory::delete

[](#memorydelete)

##### Memory::flush

[](#memoryflush)

##### Memory::get

[](#memoryget)

##### Memory::getByValueCallback

[](#memorygetbyvaluecallback)

Return cached or cache new value of plain value callback

```
  $value = $memory->getByValueCallback(
    'key_name',    // string, unique key name
    'value',       // mixed, plain value
    3600 + time(), // optional, cache timeout for this value
  );

```

##### Memory::getByMethodCallback

[](#memorygetbymethodcallback)

Return cached or cache new value of object method callback

```
  $value = $memory->getByMethodCallback(
    $class_object,         // object of method class
    'method_name',         // object method name
    [
      $method_attribute_1, // optional, array of attributes callback method requires
      $method_attribute_2,
      ...
    ]
    3600 + time(),         // optional, cache timeout for this value
  );

```

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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

Recently: every ~44 days

Total

6

Last Release

927d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/108541346?v=4)[d47081](/maintainers/d47081)[@d47081](https://github.com/d47081)

![](https://avatars.githubusercontent.com/u/129769985?v=4)[YGGverse](/maintainers/YGGverse)[@YGGverse](https://github.com/YGGverse)

---

Top Contributors

[![d47081](https://avatars.githubusercontent.com/u/108541346?v=4)](https://github.com/d47081 "d47081 (1 commits)")

---

Tags

cachecache-phpmemcachedphpphp-memcached

### Embed Badge

![Health badge](/badges/yggverse-cache/health.svg)

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

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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