Memcached Storage

High-performance distributed memory object caching system.

The MemcachedStore uses Memcached for extremely fast, distributed rate limiting with CAS (Check-And-Set) support for atomicity.

Installation

Pythonbash
pip install halt[memcached]
TypeScriptbash
npm install memcached

Usage

Python

from halt.stores.memcached import MemcachedStore

store = MemcachedStore(
    servers=["localhost:11211"]
)

TypeScript

import { MemcachedStore } from 'halt/stores/memcached';

const store = new MemcachedStore({
  servers: 'localhost:11211'
});