Vladimir Mihailenco
d2e52839ee
Add WithTimeout
2020-02-02 14:59:27 +02:00
Vladimir Mihailenco
45de1c42ae
Set error on the commands in case there are no more attempts left
2020-02-02 14:17:14 +02:00
Vladimir Mihailenco
db45a825cc
Remove SetLimiter
2020-02-02 11:09:27 +02:00
Alexander A. Klimov
4cb8d0f0af
Options#init(): auto-detect *nix socket address
2019-09-23 13:58:50 +02:00
Vladimir Mihailenco
0c4c236793
Add RingOptions.OnNewShard
2019-08-23 14:46:40 +03:00
Vladimir Mihailenco
e694ed0084
Cleanup
2019-08-18 17:11:07 +03:00
Vladimir Mihailenco
7779accbea
Use semantic import versioning
2019-08-08 14:29:44 +03:00
Timothy Yen
0ecf16e773
Options: Use DialContext by default
...
Use net.Dialer DialContext by default because go-redis supports
contexts.
Resolves #1101
2019-07-30 13:03:41 -07:00
Vladimir Mihailenco
f3ce3362a0
Add golangci-lint
2019-07-25 14:36:50 +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
3da4357c0c
Pass network and addr to dialer
2019-06-04 12:40:36 +03:00
mingrammer
c9fed25a60
Support default redis address
2019-01-13 17:36:38 +09:00
Vladimir Mihailenco
5d8c5c5c37
Add Limiter interface
2018-11-29 09:52:49 +02:00
andriikushch
b834145dc7
Add test for read timeout option ( #877 )
...
Add test for ReadTimeout option
2018-10-05 09:46:29 +03:00
Vladimir Mihailenco
651e9fef1d
Add MaxConnAge
2018-08-12 10:25:16 +03:00
Vladimir Mihailenco
25bf3e79e5
Add MinIdleConns
2018-08-12 08:34:06 +03:00
Vladimir Mihailenco
4bf8b5a128
Enable keep-alive by default
2018-07-24 10:26:28 +03:00
josh-tepper
8c513f1b88
Estab TLS connections + Handshake should respect DialTimeout
2018-06-27 19:34:47 -04:00
Vladimir Mihailenco
e693227e84
Tweak doc
2018-06-11 13:26:24 +03:00
Vladimir Mihailenco
faf5666fbd
Cleanup pool
2018-05-29 17:29:47 +03:00
Vladimir Mihailenco
09176ef4fa
PoolStats is an alias for pool.Stats
2017-09-11 10:12:00 +03:00
Vladimir Mihailenco
5294b5dae1
Add PoolStats.StaleConns and enable logging by default
2017-09-11 09:10:17 +03:00
wenjun.yan
4e1d2a01db
Make readOnly a private field so that only cluster client can use it
2017-07-25 10:35:41 +09:00
Vladimir Mihailenco
3ddda73a05
Close connections to unused nodes
2017-07-11 11:19:40 +03:00
Vladimir Mihailenco
9cf5f251be
Gracefully handle situation when Redis Server is down
2017-06-29 14:45:31 +03:00
Vladimir Mihailenco
9acf745faf
Scale pool size with number of cores since Redis connections are cheap
2017-06-28 18:20:26 +03:00
Vladimir Mihailenco
2dbe5a3d99
Add ParseURL example
2017-06-09 13:55:45 +03:00
Vladimir Mihailenco
3802e09b42
Simplify doc wording
2017-06-01 17:49:27 +03:00
Vladimir Mihailenco
ee42c3d5d3
Merge pull request #571 from go-redis/fix/on-connect
...
Fix/on connect
2017-05-26 14:56:40 +03:00
Vladimir Mihailenco
4a3a300665
Add Options.OnConnect
2017-05-26 14:56:18 +03:00
Jonathan Chan
406e882c43
Added backoff retry
2017-05-26 14:33:34 +03:00
Vladimir Mihailenco
191f839e81
Fix race between Subscribe and resubscribe
2017-04-17 17:00:20 +03:00
Vladimir Mihailenco
6499563e07
PubSub conns don't share connection pool limit
2017-04-17 16:59:56 +03:00
Yin Jifeng
66e06285b2
doc: update more Options default value
2017-04-17 19:30:05 +08:00
Yin Jifeng
d9dd5852ab
doc: mismatched IdleTimeout default value
2017-04-17 17:33:56 +08:00
Vladimir Mihailenco
7475b2fb0a
Increase default pool size
2017-04-12 13:09:09 +03:00
Vladimir Mihailenco
8040d63c4f
Remove gopkg.in
2017-02-19 09:49:21 +02:00
Vladimir Mihailenco
8ddd2beaee
Fix error message for Go 1.8.
2017-01-26 16:34:09 +02:00
Vladimir Mihailenco
b4efc45f1c
Set read/write timeouts more consistently.
2016-12-03 17:30:13 +02:00
Edward Muller
df2009821f
Default to secure
...
I suspect that many people will need InsecureSkipVerify:true though, but
that should be an explicit decision to expose security issues instead of
papering over them.
2016-11-16 10:35:35 -08:00
Edward Muller
4aa583b6f8
Updates based on PR feedback
2016-11-15 10:27:20 -08:00
Edward Muller
019ff6eb38
Add support for parsing redis:// and rediss:// URLs
...
This includes setting up a default dialer that handles the ssl
handshake.
2016-11-14 08:50:05 -08:00
Vladimir Mihailenco
f5245efa73
Prepare v5 release.
2016-10-09 10:56:53 +00:00
evalphobia
8f5aeb7065
Disable idle checks for cluster connection
2016-09-27 14:13:33 +09:00
Vladimir Mihailenco
cea5c239f5
Set some sane default for every day usage.
2016-09-13 14:50:01 +00:00
Vladimir Mihailenco
66f2eb1584
ring: reduce HeartbeatFrequency.
2016-08-09 13:54:04 +00:00
Vladimir Mihailenco
079b7ce393
Rework Options initialisation.
2016-06-05 11:10:30 +00:00
Vladimir Mihailenco
ac162eb843
Move Select to stateful commands and make it available only via Pipeline and Tx.
2016-06-05 09:45:39 +00:00
Joris Minjat
487feebef1
Add latency based routing to Redis Cluster client.
2016-05-23 12:49:55 +03:00