litememcache icon indicating copy to clipboard operation
litememcache copied to clipboard

LiteMemcache is the most lightweight Memcached client written in PHP

LiteMemcache English version

LiteMemcache is the most lightweight Memcached client written in PHP

Key points

  • Full-featured: supports all Memcached commands (including CAS)
  • Simple: just Memcached protocol, nothing more
  • Really tiny: only 105 lines of code
  • Requires nothing: pure PHP implementation
  • Reliable: all methods are covered with unit-tests

Usage example

$client = new LiteMemcache( 'host:port' );
$client->set( 'key', 'value' );
$value = $client->get( 'key' );

LiteMemcache Русская версия

LiteMemcache - самый легковесный клиент для Memcached, написанный на PHP

Основные моменты

  • Полнофункциональный: поддерживает все команды Memcached (включая CAS)
  • Простой: только протокол Memcached, ничего лишнего
  • Крошечный: всего 105 строк кода
  • Нетребовательный: написан на чистом PHP
  • Надежный: все методы покрыты юнит-тестами

Пример использования

$client = new LiteMemcache( 'хост:порт' );
$client->set( 'ключ', 'значение' );
$value = $client->get( 'ключ' );

Keywords: litememcache, memcached, memcache, php, pure, client, protocol, lightweight, simple