cache/memcache-adapter

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

Maintainers

Package info

github.com/php-cache/memcache-adapter

Homepage

pkg:composer/cache/memcache-adapter

Transparency log

Statistics

Installs: 361 377

Dependents: 5

Suggesters: 10

Stars: 6

3.0.0 2026-08-20 01:59 UTC

This package is auto-updated.

Last update: 2026-08-20 02:25:33 UTC


README

Latest Stable Version Coverage Software License

This package provides PSR-6 and PSR-16 cache implementations backed by the Memcache extension. The pool also supports tags.

Installation

Install the package and enable the Memcache extension:

composer require cache/memcache-adapter:^3.0

Usage

use Cache\Adapter\Memcache\MemcacheCachePool;

$client = new Memcache();
$client->connect('127.0.0.1', 11211);

$pool = new MemcacheCachePool($client);

Upgrading to version 3

Version 3 stores a generation snapshot with each tagged item and a separate marker for each tag. Version 2 workers cannot safely share this format.

Stop or drain all workers, clear Memcache, and then deploy version 3. Follow the same sequence before a rollback.

Contributing

Send pull requests to the main repository. Report issues on the GitHub issue tracker.