forked from informatikr/hedis
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from juspay/cluster
Cluster Support
- Loading branch information
Showing
29 changed files
with
2,172 additions
and
595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ Main.hs | |
.stack-work | ||
TAGS | ||
stack*.yaml.lock | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
packages: | ||
./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: hedis | ||
version: 0.12.13 | ||
version: 0.15.2 | ||
synopsis: | ||
Client library for the Redis datastore: supports full command set, | ||
pipelining. | ||
|
@@ -43,7 +43,7 @@ maintainer: Kostiantyn Rybnikov <[email protected]> | |
copyright: Copyright (c) 2011 Falko Peters | ||
category: Database | ||
build-type: Simple | ||
cabal-version: >=1.8 | ||
cabal-version: >=1.10 | ||
homepage: https://github.com/informatikr/hedis | ||
bug-reports: https://github.com/informatikr/hedis/issues | ||
extra-source-files: CHANGELOG | ||
|
@@ -58,6 +58,7 @@ flag dev | |
manual: True | ||
|
||
library | ||
default-language: Haskell2010 | ||
hs-source-dirs: src | ||
ghc-options: -Wall -fwarn-tabs | ||
if impl(ghc >= 8.6.0) | ||
|
@@ -67,6 +68,7 @@ library | |
if flag(dev) | ||
ghc-prof-options: -auto-all | ||
exposed-modules: Database.Redis | ||
, Database.Redis.Sentinel | ||
, Database.Redis.Core.Internal | ||
build-depends: scanner >= 0.2, | ||
async >= 2.1, | ||
|
@@ -75,6 +77,7 @@ library | |
bytestring-lexing >= 0.5, | ||
exceptions, | ||
unordered-containers, | ||
containers, | ||
text, | ||
deepseq, | ||
mtl >= 2, | ||
|
@@ -86,22 +89,30 @@ library | |
vector >= 0.9, | ||
HTTP, | ||
errors, | ||
network-uri | ||
network-uri, | ||
unliftio-core | ||
if !impl(ghc >= 8.0) | ||
build-depends: | ||
semigroups >= 0.11 && < 0.19 | ||
|
||
other-modules: Database.Redis.Core, | ||
Database.Redis.Connection, | ||
Database.Redis.Cluster, | ||
Database.Redis.Cluster.HashSlot, | ||
Database.Redis.Cluster.Command, | ||
Database.Redis.ProtocolPipelining, | ||
Database.Redis.Protocol, | ||
Database.Redis.PubSub, | ||
Database.Redis.Transactions, | ||
Database.Redis.Types | ||
Database.Redis.Commands, | ||
Database.Redis.ManualCommands, | ||
Database.Redis.URL | ||
Database.Redis.URL, | ||
Database.Redis.ConnectionContext | ||
other-extensions: StrictData | ||
|
||
benchmark hedis-benchmark | ||
default-language: Haskell2010 | ||
type: exitcode-stdio-1.0 | ||
main-is: benchmark/Benchmark.hs | ||
build-depends: | ||
|
@@ -116,10 +127,38 @@ benchmark hedis-benchmark | |
ghc-prof-options: -auto-all | ||
|
||
test-suite hedis-test | ||
default-language: Haskell2010 | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: test | ||
main-is: Test.hs | ||
main-is: Main.hs | ||
other-modules: PubSubTest | ||
Tests | ||
build-depends: | ||
base == 4.*, | ||
bytestring >= 0.10, | ||
hedis, | ||
HUnit, | ||
async, | ||
stm, | ||
text, | ||
mtl == 2.*, | ||
test-framework, | ||
test-framework-hunit, | ||
time | ||
-- We use -O0 here, since GHC takes *very* long to compile so many constants | ||
ghc-options: -O0 -Wall -rtsopts -fno-warn-unused-do-bind | ||
if flag(dev) | ||
ghc-options: -Werror | ||
if flag(dev) | ||
ghc-prof-options: -auto-all | ||
|
||
test-suite hedis-test-cluster | ||
default-language: Haskell2010 | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: test | ||
main-is: ClusterMain.hs | ||
other-modules: PubSubTest | ||
Tests | ||
build-depends: | ||
base == 4.*, | ||
bytestring >= 0.10, | ||
|
@@ -140,6 +179,7 @@ test-suite hedis-test | |
ghc-prof-options: -auto-all | ||
|
||
test-suite doctest | ||
default-language: Haskell2010 | ||
type: exitcode-stdio-1.0 | ||
main-is: DocTest.hs | ||
ghc-options: -O0 -rtsopts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.