memcache-haskell: Memcache procotol library

[ library, mit, network ] [ Propose Tags ] [ Report a vulnerability ]

A memcache protocol library for client and server applications.


[Skip to Readme]

Flags

Automatic Flags
NameDescriptionDefault
sample

Build sample programs

Disabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.10, 0.0.10.1
Change log ChangeLog.md
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 https://github.com/gree/memcache-haskell/issues
Source repo head: git clone https://github.com/gree/memcache-haskell.git
Uploaded by junjihashimoto at 2015-04-27T03:47:10Z
Distributions
Reverse Dependencies 2 direct, 0 indirect [details]
Executables memcache-sample-retrieval, memcache-sample-client
Downloads 1571 total (7 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-0.0.10.1

[back to package description]

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.