adammbalogh/key-value-store-memcached

Key-value memcached store through the memcached extension.

Maintainers

👁 adammbalogh

Package info

github.com/adammbalogh/key-value-store-memcached

pkg:composer/adammbalogh/key-value-store-memcached

Statistics

Installs: 34

Dependents: 0

Suggesters: 1

Stars: 0

Open Issues: 0

0.5.1 2014-10-20 17:38 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT e9919d6ef75badf0b2caf4ad45629666af21cd67

nosqlmemcachestorememcachedvaluekeykey-valuekey-value-memcached

This package is auto-updated.

Last update: 2026-06-29 01:20:20 UTC


README

👁 Author
👁 Build Status
👁 Coverage Status
👁 Quality Score
👁 Software License
👁 Packagist Version
👁 Total Downloads

👁 SensioLabsInsight

Description

This library provides a layer to a key value memcached store.

It uses the memcached extension.

Check out the abstract library to see the other adapters and the Api.

Installation

Install it through composer.

{
 "require": {
 "adammbalogh/key-value-store-memcached": "@stable"
 }
}

tip: you should browse the adammbalogh/key-value-store-memcached page to choose a stable version to use, avoid the @stable meta constraint.

Usage

<?php
use AdammBalogh\KeyValueStore\KeyValueStore;
use AdammBalogh\KeyValueStore\Adapter\MemcachedAdapter as Adapter;

$memcachedClient = new Memcached();
$memcachedClient->addServer('localhost', 11211);

$adapter = new Adapter($memcachedClient);

$kvs = new KeyValueStore($adapter);

$kvs->set('sample_key', 'Sample value');
$kvs->get('sample_key');
$kvs->delete('sample_key');

API

Please visit the API link in the abstract library.

Toolset

Key Value Server
✔ delete ✔ get ✔ flush
✔ expire ✔ set
✔ getTtl
✔ has
✔ persist

Support

👁 Support with Gittip