memcache-0.3.0.2: memcache.cabal
name: memcache
version: 0.3.0.2
homepage: https://github.com/dterei/memcache-hs
bug-reports: https://github.com/dterei/memcache-hs/issues
synopsis: A memcached client library.
description:
A client library for a Memcached cluster. Memcached is an in-memory key-value
store typically used as a distributed and shared cache. Clients connect to a
group of Memcached servers and perform out-of-band caching for things like
SQL results, rendered pages, or third-party APIs.
.
It supports the binary Memcached protocol and SASL authentication. No support
for the ASCII protocol is provided. It supports connecting to a single, or a
cluster of Memcached servers. When connecting to a cluser, consistent hashing
is used for routing requests to the appropriate server. Timeouts, retrying
failed operations, and failover to a different server are all supported.
.
Complete coverage of the Memcached protocol is provided except for multi-get
and other pipelined operations.
.
Basic usage is:
.
> import qualified Database.Memcache.Client as M
>
> mc <- M.newClient [M.ServerSpec "localhost" "11211" M.NoAuth] M.def
> M.set mc "key" "value" 0 0
> v <- M.get mc "key"
.
You should only need to import 'Database.Memcache.Client', but for now other
modules are exposed.
license: BSD3
license-file: LICENSE
author: David Terei <code@davidterei.com>
maintainer: David Terei <code@davidterei.com>
copyright: 2016 David Terei.
category: Database
build-type: Simple
cabal-version: >= 1.10
extra-source-files:
README.md, CHANGELOG.md, TODO.md
Source-repository this
type: git
location: https://github.com/dterei/memcache-hs.git
tag: 0.3.0.2
source-repository head
type: git
location: https://github.com/dterei/memcache-hs.git
library
exposed-modules:
Database.Memcache.Client
Database.Memcache.Cluster
Database.Memcache.Errors
Database.Memcache.SASL
Database.Memcache.Server
Database.Memcache.Socket
Database.Memcache.Types
build-depends:
base < 5,
binary >= 0.6.2.0,
blaze-builder >= 0.3.1.0,
bytestring >= 0.9.2.1,
data-default-class >= 0.1.0,
hashable >= 1.2.0.3,
network >= 3.1.0.0,
resource-pool >= 0.2.1.0,
vector >= 0.7,
time >= 1.4
default-language: Haskell2010
other-extensions:
BangPatterns,
CPP,
DeriveDataTypeable,
FlexibleInstances,
RecordWildCards,
ScopedTypeVariables
ghc-options: -Wall -fwarn-tabs
-- executable opgen
-- hs-source-dirs: tools
-- main-is: OpGen.hs
-- ghc-options: -threaded
-- build-depends:
-- async,
-- base < 5,
-- bytestring,
-- memcache,
-- network
--
-- executable load
-- hs-source-dirs: tools
-- main-is: Loader.hs
-- ghc-options: -threaded
-- build-depends:
-- async,
-- base < 5,
-- bytestring,
-- memcache,
-- network
test-suite full
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Full.hs
build-depends:
base < 5,
binary >= 0.6.2.0,
blaze-builder >= 0.3.1.0,
bytestring >= 0.9.2.1,
memcache,
network >= 2.4
other-modules:
MockServer
default-language: Haskell2010
other-extensions:
BangPatterns,
CPP,
OverloadedStrings
ghc-options: -fwarn-tabs
benchmark parser
type: exitcode-stdio-1.0
hs-source-dirs: bench
main-is: Parser.hs
build-depends:
base < 5,
bytestring >= 0.9.2.1,
criterion > 0.6.0.0,
memcache
default-language: Haskell2010
other-extensions:
OverloadedStrings
ghc-options: -fwarn-tabs