Description
Memcache procotol library.
Description
A memcache protocol library for client and server applications.
README.md
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
- Call
openClient
withip-address:port
of memcache-server to obtain a handle. - To set or get a data on the memcache server, call
set
orget
with the handle. - 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.