tikaszvince/key-value-store-memcache

Key-value memcache store through memcache extension.

Maintainers

πŸ‘ tikaszvince

Package info

github.com/tikaszvince/key-value-store-memcache

pkg:composer/tikaszvince/key-value-store-memcache

Statistics

Installs: 5

Dependents: 0

Suggesters: 1

Stars: 0

Open Issues: 0

0.5.0 2014-10-26 09:27 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT d8a31548b76d6be3bc743db52accaf60be918740

  • Adam Balogh <baloghbh.woop@gmail.com>
  • Vince TikΓ‘sz <vince.tikasz.woop@gmail.com>

nosqlmemcachestorememcachedvaluekeykey-valuekey-value-memcache

This package is not auto-updated.

Last update: 2026-06-16 12:13:08 UTC


README

πŸ‘ Author
πŸ‘ Build Status
πŸ‘ Coverage Status
πŸ‘ Software License
πŸ‘ Packagist Version

Description

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

It uses the memcache extension.

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

Installation

Install it through composer.

{
 "require": {
 "tikaszvince/key-value-store-memcache": "@stable"
 }
}

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

Usage

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

$memcacheClient = new Memcache();
$memcacheClient->addServer('localhost', 11211);

$adapter = new Adapter($memcacheClient);

$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