forked from dterei/memcache-hs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
memcache.cabal
121 lines (116 loc) · 3.56 KB
/
memcache.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
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 <[email protected]>
maintainer: David Terei <[email protected]>
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.ElastiCacheClient
Database.Memcache.Cluster
Database.Memcache.Errors
Database.Memcache.SASL
Database.Memcache.Server
Database.Memcache.Socket
Database.Memcache.Types
other-modules:
Database.Memcache.Types.Authentication
Database.Memcache.Types.ServerSpec
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,
errors >= 2.3.0,
hashable >= 1.2.0.3,
network >= 3.1.0.0,
network-uri >= 2.6.4.2,
resource-pool >= 0.2.1.0,
vector >= 0.7,
time >= 1.4,
text >= 2.0.2,
unliftio >= 0.2.25.0
default-language: Haskell2010
other-extensions:
BangPatterns,
CPP,
DeriveDataTypeable,
FlexibleInstances,
RecordWildCards,
ScopedTypeVariables
ghc-options: -Wall -fwarn-tabs
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