ktaekwon000
ce40cd942a
Allow FIFO pool in redis client ( #1820 )
...
* Initial commit for FIFO pool
* Change PoolType string to PoolFIFO bool
* Remove redundant type
* add PoolFIFO option to all clients
Signed-off-by: monkey92t <golang@88.com>
Co-authored-by: Kim Tae Kwon <taekwon.kim@shopee.com>
Co-authored-by: monkey92t <golang@88.com>
2021-07-16 11:58:01 +08:00
Roman Suvorov
38caa12762
Feature/gofumpt ( #1545 )
...
* enable gofumpt
* remove nlreturn
* up golang-ci
2020-10-22 09:40:20 +03:00
Dimitrij Denissenko
3fc96195a4
Reduce dependency chain
2020-09-17 14:32:08 +01:00
Vladimir Mihailenco
c5d4b71f66
Fix race
2020-09-17 12:36:10 +03:00
Vladimir Mihailenco
4b9d6dfd40
Propage context in Ring
2020-09-14 15:37:05 +03:00
GreenHedgehog
1a65d677b3
Fix not applying updated ClusterClient context after calling WithContext method ( #1480 )
...
pass context to command info cache init call
2020-09-14 15:30:50 +03:00
Vladimir Mihailenco
b657760cca
Tweak number of retries
2020-09-11 12:13:27 +03:00
Vladimir Mihailenco
21a1f58caf
Retry timeout and retryable error
2020-07-24 15:52:15 +03:00
刘青
8a3f304b25
Log with context to associate all log by traceID ( #1413 )
...
* Log with context to associate all log by traceID
2020-07-18 09:04:36 +03:00
Vladimir Mihailenco
14c843ef89
gofumports
2020-07-16 09:52:07 +03:00
Mitsuo Heijo
44e1bf83ea
upgrade xxhash to v2
2020-07-06 13:51:51 +09:00
Vladimir Mihailenco
0ffefcde98
Use random node to load cluster slots
2020-06-29 17:26:11 +03:00
Vladimir Mihailenco
888328aef2
Set Ring.Username
2020-06-12 09:28:14 +03:00
Devin Burke
fea8458443
Re-added password support for AUTH purposes
2020-06-11 18:58:09 -05:00
Vladimir Mihailenco
736fa28659
Cleanup
2020-06-10 15:04:12 +03:00
Vladimir Mihailenco
ef82e3705c
Add OnConnect context
2020-06-10 10:36:22 +03:00
Vladimir Mihailenco
694e518a8c
Use Rendezvous in Ring. Thanks @rafaeleyng for initial idea and implementation
2020-06-08 13:22:37 +03:00
Philip Manavopoulos
0557f66418
cmdsInfo to actually use and return the first error
2020-05-19 08:52:38 +03:00
Vladimir Mihailenco
76f0041b12
Fix build
2020-05-19 08:52:38 +03:00
Vladimir Mihailenco
558263e5eb
Remove deprecated Ring options
2020-05-19 08:52:38 +03:00
Vladimir Mihailenco
3dcb844106
Bump major version
2020-05-19 08:52:38 +03:00
Vladimir Mihailenco
f5593121e0
Add ctx as first arg
2020-05-19 08:52:38 +03:00
Dirkjan Bussink
9a49a4d91d
Add client instantiation callback to allow more flexible configuration ( #1281 )
...
* Add NewClient to Ring options
2020-03-27 15:48:18 +02:00
Vladimir Mihailenco
218b17f0fc
Include multi & exec in pipeline hook
2020-02-14 15:55:16 +02:00
Vladimir Mihailenco
49a0c8c319
Add test for ring and cluster hooks
2020-02-14 14:30:40 +02:00
Vladimir Mihailenco
512e6c7a40
Unexport Clone and Lock from embedded hooks
2020-02-12 13:02:09 +02:00
git-hulk
d52b11cb42
Exported the setErr function as public
2020-02-03 17:53:47 +08:00
Vladimir Mihailenco
152e52f203
Fix WithContext race
2019-08-24 12:40:23 +03:00
Vladimir Mihailenco
0c4c236793
Add RingOptions.OnNewShard
2019-08-23 14:46:40 +03:00
Vladimir Mihailenco
f6fc23d2fa
Move key to ZStore
2019-08-09 16:23:56 +03:00
Vladimir Mihailenco
2a46cb006d
Add withConn and set cmd errors more consistently
2019-08-09 13:53:05 +03:00
Vladimir Mihailenco
7779accbea
Use semantic import versioning
2019-08-08 14:29:44 +03:00
Vladimir Mihailenco
48224a399f
Remove releaseConnStrict
2019-08-08 11:44:55 +03:00
Vladimir Mihailenco
4e9cea8876
Add proper SingleConnPool implementation
2019-08-03 17:31:28 +03:00
Vladimir Mihailenco
c837612911
Cancel sleep when context is cancelled
2019-07-30 12:13:00 +03:00
Vladimir Mihailenco
f3ce3362a0
Add golangci-lint
2019-07-25 14:36:50 +03:00
Vladimir Mihailenco
52ec525849
Propagate context in Pipeline
2019-07-25 13:28:15 +03:00
Vladimir Mihailenco
9d9e126af0
Implement TxPipeline for Ring
2019-07-19 12:00:11 +03:00
Michael Benford
9169633580
Add support for individual passwords for ring shards
2019-07-17 11:31:42 -03:00
Vladimir Mihailenco
2cbb5194fb
Fix WithContext and add tests
2019-07-04 11:57:54 +03:00
Vladimir Mihailenco
3bdf64784a
Cleanup
2019-06-17 12:32:40 +03:00
Vladimir Mihailenco
5460bc10f2
Use Context.Deadline to set net.Conn deadline
2019-06-08 15:02:51 +03:00
Vladimir Mihailenco
53c8a4a6b7
Pass context to Dialer
2019-06-04 14:26:26 +03:00
Vladimir Mihailenco
09eb108738
Allow passing context where possible
2019-06-04 13:30:47 +03:00
Vladimir Mihailenco
84422d7ae7
Speedup WithContext
2019-05-31 17:31:54 +03:00
Vladimir Mihailenco
8476dfea4a
Replace Wrap* with hooks that support context
2019-05-31 16:36:57 +03:00
Andrea Spacca
97e6ed8178
Ring instrumentantions ( #1017 )
...
* Ring instrumentantions
2019-04-24 09:33:36 +03:00
Vladimir Mihailenco
a46b053aa6
More granular locking
2019-04-22 12:50:13 +03:00
Andrea Spacca
be4c4f3f38
Ring Watch ( #1015 )
...
* Ring Watch
2019-04-22 12:48:06 +03:00
Vladimir Mihailenco
b665d8fcf2
Rename copy to clone
2019-03-05 16:10:34 +02:00