Albus / litememcache

LiteMemcache is the most lightweight Memcached client written in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
  • Надежный: все методы покрыты юнит-тестами

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

"repositories": [
    {
      "type":"package",
      "package": {
        "name": "ptrofimov/litememcache",
        "version":"1.0.0",
        "source": {
          "url": "https://github.com/ptrofimov/litememcache.git",
          "type": "git",
          "reference":"master"
        }
      }
    }
  ],
  "require": {
    "php": ">=7.1.10",
    "ptrofimov/litememcache" : "1.0.0"
  }
$client = new LiteMemcache( 'хост:порт' );
$client->set( 'ключ', 'значение' );
$value = $client->get( 'ключ' );

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

About

LiteMemcache is the most lightweight Memcached client written in PHP


Languages

Language:PHP 100.0%