memcache-haskell: Memcache procotol library

[ library, mit, network ] [ Propose Tags ]

A memcache protocol library for client and server applications.

[Skip to Readme]


Automatic Flags

Build sample programs


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 0.0.10,
Change log
Dependencies attoparsec, base (>=4 && <5), bytestring (>=0.9), conduit-extra, containers, hashable, hashtables, memcache-haskell, mtl, network (>=2.3.2), resourcet, split, stm (>=2.4), transformers [details]
License MIT
Copyright (c) 2015 GREE, Inc.
Author Kiyoshi Ikehara
Maintainer Kiyoshi Ikehara
Category Network
Bug tracker
Source repo head: git clone
Uploaded by junjihashimoto at 2015-04-27T03:47:10Z
Distributions NixOS:
Reverse Dependencies 2 direct, 0 indirect [details]
Executables memcache-sample-retrieval, memcache-sample-client
Downloads 1488 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-04-27 [all 1 reports]

Readme for memcache-haskell-

[back to package description]


This package is a memcache protocol library for server and client applications.

Main purpose of this library is making a server itself.

This does not support consistent hashing and any other functions like "libmemcached".

Getting started

Install from Hackage.

cabal update && cabal install memcache-haskell


  1. Call openClient with ip-address:port of memcache-server to obtain a handle.
  2. To set or get a data on the memcache server, call set or get with the handle.
  3. Finally call closeClient after you are done.


main :: IO ()
main = do
  client <- openClient ""
  ret <- set client "key" "foo"
  print ret
  ret' <- get client "key" :: IO (Maybe String)
  print ret'
  closeClient client


  • Kiyoshi Ikehara
  • Yuji Kamiya
  • Junji Hashimoto



Copyright © Gree, Inc. All Rights Reserved.