memcache-haskell

Memcache procotol library

Latest on Hackage:0.0.10.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

MIT licensed and maintained by Kiyoshi Ikehara

memcache-haskell

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

Usage

  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.

Example:

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

Contributors

  • Kiyoshi Ikehara
  • Yuji Kamiya
  • Junji Hashimoto

License

See LICENSE.

Copyright © Gree, Inc. All Rights Reserved.

Changes

0.0.10.1

  • Add exptime-support to Network.Memcache.Client
comments powered byDisqus