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

ActiveLibrary[Caching](/categories/caching)

websk/php-cache
===============

2.2.3(1y ago)11525PHPPHP ^8.3

Since Jul 2Pushed 1y ago2 watchersCompare

[ Source](https://github.com/websk/php-cache)[ Packagist](https://packagist.org/packages/websk/php-cache)[ RSS](/packages/websk-php-cache/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (6)Dependencies (1)Versions (11)Used By (5)

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

[](#websk-php-cache)

Optional support Memcache, Memcached, Redis

Install
-------

[](#install)

install dependency using Composer

```
composer require websk/php-cache
```

Configuration example
---------------------

[](#configuration-example)

```
$config = [
    'settings' => [
        'cache' => [
            'engine' => \WebSK\Cache\Engines\Memcache::class,
            'cache_key_prefix' => 'websk',
            'servers' => [
                [
                    'host' => 'memcached',
                    'port' => 11211
                ]
            ]
        ]
    ]
];

```

Registering a service
---------------------

[](#registering-a-service)

```
/**
 * @param ContainerInterface $container
 * @return CacheService
 */
$container['cache_service'] = function (ContainerInterface $container) {
    $cache_config = $container["settings"]["cache"];

    $cache_servers_arr = [];
    foreach ($cache_config['servers'] as $server_config) {
        $cache_servers_arr[] = new CacheServerSettings($server_config['host'], $server_config['port']);
    }

    /** @var CacheEngineInterface $cache_engine_class_name */
    $cache_engine_class_name = $cache_config['engine'];
    $cache_engine = new $cache_engine_class_name($cache_servers_arr, $cache_config['cache_key_prefix']);

    return new CacheService($cache_engine);
};

```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance42

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 90% 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 ~268 days

Recently: every ~40 days

Total

10

Last Release

461d ago

Major Versions

1.2.1 → 2.0.02024-08-22

### Community

Maintainers

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

---

Top Contributors

[![skulkov](https://avatars.githubusercontent.com/u/18742741?v=4)](https://github.com/skulkov "skulkov (9 commits)")[![websk](https://avatars.githubusercontent.com/u/14013132?v=4)](https://github.com/websk "websk (1 commits)")

### Embed Badge

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

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

###  Alternatives

[infocyph/intermix

A Collection of useful PHP class functions.

136.4k1](/packages/infocyph-intermix)

PHPackages © 2026

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