memcache: A memcached client library.
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 uses the Memcached Meta Text protocol and requires memcached 1.6.0 or
newer. Username/password authentication is supported through memcached's
-Y authfile mode; the binary protocol and SASL authentication are no longer
supported. It supports connecting to a single, or a cluster of Memcached
servers. When connecting to a cluster, consistent hashing is used for routing
requests to the appropriate server. Timeouts, retrying failed operations, and
failover to a different server are all supported, as is Amazon ElastiCache
auto discovery.
Multi-get is supported through the pipelined getMany. Keys containing
whitespace or control bytes are sent using the protocol's base64 binary-key
mode.
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 other modules
are exposed for lower-level use. Version 0.4 is a breaking change from 0.3;
see the changelog for details.
[Skip to Readme]
Modules
[Index] [Quick Jump]
Downloads
- memcache-0.4.0.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.0.0, 0.0.1, 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.2.0.1, 0.3.0.0, 0.3.0.1, 0.3.0.2, 0.4.0.0 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4.16 && <5), base64-bytestring (>=1.2.1.0), bytestring (>=0.11.4.0), data-default (>=0.7.1.1), errors (>=2.3.0), hashable (>=1.4.2.0), network (>=3.1.4.0), network-uri (>=2.6.4.2), resource-pool (>=0.2.3.2), text (>=1.2.5.0), time (>=1.11.1.1), unliftio (>=0.2.25.0), vector (>=0.12.3.1) [details] |
| License | BSD-3-Clause |
| Copyright | 2012-2026 David Terei. |
| Author | David Terei <code@davidterei.com> |
| Maintainer | David Terei <code@davidterei.com> |
| Uploaded | by DavidTerei at 2026-10-19T06:44:33Z |
| Revised | Revision 1 made by DavidTerei at 2026-10-19T06:51:34Z |
| Category | Database |
| Home page | https://github.com/dterei/memcache-hs#readme |
| Bug tracker | https://github.com/dterei/memcache-hs/issues |
| Source repo | head: git clone https://github.com/dterei/memcache-hs |
| Distributions | LTSHaskell:0.3.0.2, Stackage:0.3.0.2 |
| Reverse Dependencies | 5 direct, 2 indirect [details] |
| Downloads | 5653 total (16 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2026-10-19 [all 1 reports] |