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)084MITPHPPHP &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 1mo 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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

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

836d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67b0f652ebac064d26ca06ba5fd4271fab0ac5482d6c2d4865b8f3697721bc31?d=identicon)[d47081](/maintainers/d47081)

![](https://www.gravatar.com/avatar/d4eafa818f51a43c026ee538ac36192684eef5e128e1eac8d622b74d1bfd4de4?d=identicon)[YGGverse](/maintainers/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

[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)[cheprasov/php-redis-client

Php client for Redis. It is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 6.0

1281.2M21](/packages/cheprasov-php-redis-client)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)

PHPackages © 2026

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