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

Abandoned → [soupmix/cache](/?search=soupmix%2Fcache)ArchivedLibrary[Caching](/categories/caching)

soupmix/cache-memcached
=======================

Framework agnostic Memcached adapter for SimpleCache Interface.

0.3.3(8y ago)1971MITPHPPHP &gt;=5.6

Since Jun 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/soupmix/cache-memcached)[ Packagist](https://packagist.org/packages/soupmix/cache-memcached)[ Docs](https://github.com/soupmix/cache-memcached)[ RSS](/packages/soupmix-cache-memcached/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (9)Dependencies (4)Versions (10)Used By (0)

Soupmix Memcached Cache Adaptor
-------------------------------

[](#soupmix-memcached-cache-adaptor)

[![Build Status](https://camo.githubusercontent.com/0b6ecae33aa1b12c7a2897e72bafb4036493699071d8cee485eeab634c5933d1/68747470733a2f2f7472617669732d63692e6f72672f736f75706d69782f63616368652d6d656d6361636865642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/soupmix/cache-memcached) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/6e1f7acfff7faf809de3ab103d78928c4961fc4db78f4e8db32800bbb907dd53/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f75706d69782f63616368652d6d656d6361636865642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/soupmix/cache-memcached/?branch=master) [![Codacy Badge](https://camo.githubusercontent.com/9821f2f26950a9c536aefc31dd644cda1bd8032d400b61f64380d4fdcee47d68/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6632666438356161646463343437393362666332353032303830326565356632)](https://www.codacy.com/app/mehmet/cache-memcached?utm_source=github.com&utm_medium=referral&utm_content=soupmix/cache-memcached&utm_campaign=Badge_Grade) [![Code Climate](https://camo.githubusercontent.com/273abcbfbce9ee0e16545ff35f519507bc04c1a027518972167b488f37aa5d39/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f736f75706d69782f63616368652d6d656d6361636865642f6261646765732f6770612e737667)](https://codeclimate.com/github/soupmix/cache-memcached)[![Latest Stable Version](https://camo.githubusercontent.com/bfeeb8c0572a2737b006a73ff6a817802156f696543d6320226c0d39975aab8a/68747470733a2f2f706f7365722e707567782e6f72672f736f75706d69782f63616368652d6d656d6361636865642f762f737461626c65)](https://packagist.org/packages/soupmix/cache-memcached) [![Total Downloads](https://camo.githubusercontent.com/223c31dd4359471f64a279a309fa92898affebd2b0c15735660f4593492ea564/68747470733a2f2f706f7365722e707567782e6f72672f736f75706d69782f63616368652d6d656d6361636865642f646f776e6c6f616473)](https://packagist.org/packages/soupmix/cache-memcached) [![Latest Unstable Version](https://camo.githubusercontent.com/d52595659168889f9c6d1f0c3866b0295cb95090fee62c23881bc0b3f5431116/68747470733a2f2f706f7365722e707567782e6f72672f736f75706d69782f63616368652d6d656d6361636865642f762f756e737461626c65)](https://packagist.org/packages/soupmix/cache-memcached) [![License](https://camo.githubusercontent.com/89dbc59cacc0295951000f74b90e7dcb3d0191aa8a95ae0af5e36e53de9387a6/68747470733a2f2f706f7365722e707567782e6f72672f736f75706d69782f63616368652d6d656d6361636865642f6c6963656e7365)](https://packagist.org/packages/soupmix/cache-memcached) [![composer.lock](https://camo.githubusercontent.com/9793a52e52068384f935422eff2874b9baf605fe8e7fbccb1fae1f563fb847d3/68747470733a2f2f706f7365722e707567782e6f72672f736f75706d69782f63616368652d6d656d6361636865642f636f6d706f7365726c6f636b)](https://packagist.org/packages/soupmix/cache-memcached) [![Code Coverage](https://camo.githubusercontent.com/26c2de21461c1e382212784b9420de5c3d61cefeee7acd2fc419336b7e8e771d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f75706d69782f63616368652d6d656d6361636865642f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/soupmix/cache-memcached/?branch=master)

### Installation

[](#installation)

It's recommended that you use [Composer](https://getcomposer.org/) to install Soupmix Cache Memcached Adaptor.

```
$ composer require soupmix/cache-memcached "~0.3"
```

### Connection

[](#connection)

```
require_once '/path/to/composer/vendor/autoload.php';

$config = [
    'bucket' => 'test',
    'hosts'   => ['127.0.0.1'],
;
$handler = new Memcached($config['bucket']);
$handler->setOption(Memcached::OPT_LIBKETAMA_COMPATIBLE, true);
$handler->setOption(Memcached::OPT_BINARY_PROTOCOL, true);
if (!count($handler->getServerList())) {
    $hosts = [];
    foreach ($config['hosts'] as $host) {
        $hosts[] = [$host, 11211];
    }
    $handler->addServers($hosts);
}

$cache = new Soupmix\Cache\MemcachedCache($handler);
```

### Soupmix Memcached Cache API

[](#soupmix-memcached-cache-api)

[See Soupmix Cache API](https://github.com/soupmix/cache-base/blob/master/README.md)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98% 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 ~63 days

Recently: every ~122 days

Total

9

Last Release

3157d ago

PHP version history (2 changes)0.1PHP &gt;=5.5

0.3.2PHP &gt;=5.6

### Community

Maintainers

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

---

Top Contributors

[![mkorkmaz](https://avatars.githubusercontent.com/u/585601?v=4)](https://github.com/mkorkmaz "mkorkmaz (48 commits)")[![rodrigowbazevedo](https://avatars.githubusercontent.com/u/6214250?v=4)](https://github.com/rodrigowbazevedo "rodrigowbazevedo (1 commits)")

---

Tags

cachememcachedadapterssimplecache

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tedivm/stash

The place to keep your cache.

9614.9M126](/packages/tedivm-stash)[tedivm/stash-bundle

Incorporates the Stash caching library into Symfony.

841.4M16](/packages/tedivm-stash-bundle)[sabre/cache

Simple cache abstraction layer implementing PSR-16

551.3M4](/packages/sabre-cache)[gilbitron/php-simplecache

A simple script for caching 3rd party API calls in PHP.

26038.0k5](/packages/gilbitron-php-simplecache)[cache/memcached-adapter

A PSR-6 cache implementation using Memcached. This implementation supports tags

162.0M15](/packages/cache-memcached-adapter)[aplus/cache

Aplus Framework Cache Library

171.6M4](/packages/aplus-cache)

PHPackages © 2026

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