forked from dterei/memcache-hs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.yaml
141 lines (127 loc) · 3.28 KB
/
package.yaml
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: memcache
version: 0.4.0.0
maintainer: Freckle Education
category: Database
github: freckle/memcache-hs
synopsis: Memcache client
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.
extra-doc-files:
- README.md
- CHANGELOG.md
extra-source-files:
- package.yaml
ghc-options:
- -Weverything
- -Wno-all-missed-specialisations
- -Wno-missed-specialisations
- -Wno-missing-exported-signatures # re-enables missing-signatures
- -Wno-missing-import-lists
- -Wno-missing-local-signatures
- -Wno-monomorphism-restriction
- -Wno-safe
- -Wno-unsafe
- -fwrite-ide-info
when:
- condition: "impl(ghc >= 9.2)"
ghc-options:
- -Wno-missing-kind-signatures
- condition: "impl(ghc >= 8.10)"
ghc-options:
- -Wno-missing-safe-haskell-mode
- -Wno-prepositive-qualified-module
dependencies:
- base < 5
default-extensions:
- BangPatterns
- DataKinds
- DeriveAnyClass
- DeriveFoldable
- DeriveFunctor
- DeriveGeneric
- DeriveLift
- DeriveTraversable
- DerivingStrategies
- FlexibleContexts
- FlexibleInstances
- GADTs
- GeneralizedNewtypeDeriving
- LambdaCase
- MultiParamTypeClasses
- NoMonomorphismRestriction
- OverloadedStrings
- RankNTypes
- RecordWildCards
- ScopedTypeVariables
- StandaloneDeriving
- TypeApplications
- TypeFamilies
- NoImplicitPrelude
internal-libraries:
internal:
source-dirs: internal
library:
source-dirs: library
dependencies:
- internal
- binary
- blaze-builder
- bytestring
- data-default-class
- hashable
- network
- range-set-list
- resource-pool
- time
- vector
tests:
full:
main: Full.hs
source-dirs: tests/full
ghc-options: -threaded -rtsopts "-with-rtsopts=-N"
dependencies:
- internal
- memcache
- binary
- blaze-builder
- bytestring
- network
spec:
main: Spec.hs
source-dirs: tests/spec
ghc-options: -threaded -rtsopts "-with-rtsopts=-N"
dependencies:
- memcache
- internal
- hspec
- QuickCheck
- range-set-list
- quickcheck-instances
benchmarks:
parser:
main: Parser.hs
source-dirs: bench
dependencies:
- internal
- memcache
- binary
- bytestring
- criterion