@hackage memcache-haskell0.0.10.1
Memcache procotol library
Categories
License
MIT
Maintainer
Kiyoshi Ikehara
Links
Versions
Installation
Dependencies (7)
- attoparsec
- base >=4 && <5
- bytestring
- hashable
- network >=2.3.2
- split Show all…
Dependents (2)
@hackage/acme-everything, @hackage/memcache-conduit
Package Flags
sample
(off by default)
Build sample programs
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
openClientwithip-address:portof memcache-server to obtain a handle. - To set or get a data on the memcache server, call
setorgetwith the handle. - Finally call
closeClientafter 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.