memcache

Version 0.3.0.2 revision 0 uploaded by DavidTerei.

Package meta

Synopsis
A memcached client library.
Description

A client library for a Memcached cluster. Memcached is an in-memory key-value store typically used as a distributed and shared cache. Clients connect to a group of Memcached servers and perform out-of-band caching for things like SQL results, rendered pages, or third-party APIs.

It supports the binary Memcached protocol and SASL authentication. No support for the ASCII protocol is provided. It supports connecting to a single, or a cluster of Memcached servers. When connecting to a cluser, consistent hashing is used for routing requests to the appropriate server. Timeouts, retrying failed operations, and failover to a different server are all supported.

Complete coverage of the Memcached protocol is provided except for multi-get and other pipelined operations.

Basic usage is:

import qualified Database.Memcache.Client as M

mc <- M.newClient [M.ServerSpec "localhost" "11211" M.NoAuth] M.def
M.set mc "key" "value" 0 0
v <- M.get mc "key"

You should only need to import Database.Memcache.Client, but for now other modules are exposed.

Author
David Terei <code@davidterei.com>
Bug reports
https://github.com/dterei/memcache-hs/issues
Category
Database
Copyright
2016 David Terei.
Homepage
https://github.com/dterei/memcache-hs
Maintainer
David Terei <code@davidterei.com>
Package URL
n/a
Stability
n/a

Components