The memcache-haskell package

[Tags:library, mit, test]

A memcache protocol library for client and server applications.


[Skip to Readme]

Properties

Versions 0.0.10, 0.0.10.1
Change log ChangeLog.md
Dependencies attoparsec, base (==4.*), 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 repository head: git clone https://github.com/gree/memcache-haskell.git
Uploaded Mon Apr 27 03:47:10 UTC 2015 by junjihashimoto
Distributions NixOS:0.0.10.1
Downloads 265 total (2 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2015-04-27 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Flags

NameDescriptionDefaultType
sampleBuild sample programsDisabledAutomatic

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

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for memcache-haskell

Readme for memcache-haskell-0.0.10.1

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.