Commit Graph

198 Commits

Author SHA1 Message Date
Vladimir Mihailenco ae217e0444 Expose cluster node id in ClusterSlots. 2016-04-09 12:52:43 +03:00
Vladimir Mihailenco d79074eadb Remove PMessage. 2016-04-09 11:51:13 +03:00
Vladimir Mihailenco 1fbb1098f2 Merge branch 'v4' of github.com:go-redis/redis into v4 2016-04-09 11:41:01 +03:00
Vladimir Mihailenco 7a03514d7f Rename Multi to Tx to better reflect the purpose. Fixes #194. 2016-04-09 11:23:58 +03:00
Vladimir Mihailenco 3b051d2374 Reuse single Pipeline type in Client, ClusterClient and Ring. 2016-04-09 10:47:15 +03:00
Vladimir Mihailenco 04b6c9d3ad Improve comment. 2016-04-06 13:13:03 +03:00
Vladimir Mihailenco 30ce5ebd57 Cleanup error handling code. 2016-03-19 16:33:14 +02:00
Vladimir Mihailenco 6e1aef39ea Faster and simpler pool. 2016-03-19 11:49:13 +02:00
Vladimir Mihailenco 46790aa060 Add race test for big vals. Copy connection to avoid race with PubSub. 2016-03-14 16:34:15 +02:00
Vladimir Mihailenco ebf51e1a1b Add prefix to package logger. 2016-02-06 12:16:09 +02:00
Francisco Souza d3ee281748 Declare and use a package-level Logger
This allow users of the API to override the Logger. Fix #250.
2016-02-03 12:30:39 -05:00
Vladimir Mihailenco 6c7b789b3a Tweak pool stats. 2016-01-25 15:57:09 +02:00
Anatolii Mihailenco f7a4bd5023 Add pool instrumentation. 2016-01-19 20:08:22 +02:00
Anatolii Mihailenco 0bf3759a6d Create hashtag package. 2015-12-31 16:25:20 +02:00
Vladimir Mihailenco 36487d8462 Stabilize build. 2015-12-22 12:08:35 +02:00
Vladimir Mihailenco 9079a66323 cluster: add Watch support. 2015-12-16 16:15:01 +02:00
Vladimir Mihailenco fb44c891dd Fix sporadic pool timeouts with IdleTimeout != 0. Fixes #195. 2015-11-27 13:52:35 +02:00
Vladimir Mihailenco c809246d8b Clarify thread safety. Fixes #166. 2015-09-12 09:36:03 +03:00
Vladimir Mihailenco 1608a33e55 ring: fix key hashing in Ring pipeline. 2015-06-24 15:37:41 +03:00
Vladimir Mihailenco 46f49a17a5 Add Redis Ring. 2015-06-03 14:25:52 +03:00
Vladimir Mihailenco b70f364fcc Merge pull request #99 from go-redis/fix/release-reloading-with-delay
cluster: release reloading with delay.
2015-05-26 12:08:48 +03:00
Vladimir Mihailenco 40b429df49 Reduce number of various options structs. Slightly reword comments. 2015-05-23 17:56:18 +03:00
Vladimir Mihailenco f6ef0fd342 Add basic example how to use Redis Cluster. Unify comments. 2015-05-23 16:35:30 +03:00
Vladimir Mihailenco 40bad36dfb cluster: don't reload slots if address already changed. 2015-05-14 16:37:12 +03:00
Vladimir Mihailenco 84cd16e214 cluster: user ClusterInfo instead of Ping to find live node. 2015-05-13 12:38:34 +03:00
Vladimir Mihailenco 7f1eb05ba8 cluster: don't reset command when there no attempts left. 2015-05-10 16:01:38 +03:00
Vladimir Mihailenco 2507be6cd2 Merge pull request #96 from go-redis/fix/reload-slots-in-background
Reload slots in background goroutine.
2015-05-05 12:44:43 +03:00
Vladimir Mihailenco 121cfc5792 Remove deprecated funcs. 2015-05-02 16:22:06 +03:00
Vladimir Mihailenco 84dc1f963e Reload slots in background goroutine. 2015-05-01 14:22:49 +03:00
Vladimir Mihailenco 7da995891e Lower ticker duration. 2015-05-01 13:24:24 +03:00
Vladimir Mihailenco cc0ee10019 Fix deadlock. Stop time.Ticker. Add a test that closed client is not deadlocked. 2015-05-01 11:01:01 +03:00
Vladimir Mihailenco d00fb6ead9 Implement Close and fix reaper goroutine leak. 2015-05-01 09:37:59 +03:00
Vladimir Mihailenco 46527c872d cluster: don't reset clients when slots are changed. 2015-04-28 18:17:33 +03:00
Vladimir Mihailenco d3fb658fef Fix pool waiting for connection that was removed. 2015-04-17 15:42:35 +03:00
Dimitrij Denissenko 51f0a7b0a7 Ensure slots are initialised. Return non-failing connections to pool 2015-04-13 14:33:44 +01:00
Vladimir Mihailenco 99fe9114b1 Add ClusterPipeline. 2015-04-13 09:31:30 +03:00
Vladimir Mihailenco fc0565a85b Remove getAddrs. 2015-04-08 12:28:50 +03:00
Vladimir Mihailenco 52a9dd52b7 Store addresses of replicas again. 2015-04-08 12:28:21 +03:00
Vladimir Mihailenco dbfd75705c Remove unused func. 2015-04-07 12:51:01 +03:00
Vladimir Mihailenco 2511a1791d Use only master node address. 2015-04-07 12:51:01 +03:00
Vladimir Mihailenco 94a31f499f Attempt to cleanup cluster logic. 2015-04-07 12:51:01 +03:00
Vladimir Mihailenco fe931fc851 Add reaper that closes idle connections to the cluster. 2015-04-05 15:41:16 +03:00
Dimitrij Denissenko ac4571386d Naming consistency 2015-03-30 21:12:52 +01:00
Dimitrij Denissenko e428ae1457 Rename mutex properties 2015-03-30 15:53:28 +01:00
Dimitrij Denissenko f5091d4be5 Better race protection 2015-03-30 15:10:53 +01:00
Vladimir Mihailenco 36a06ec378 Unexport HashSlot. 2015-03-23 10:23:33 +02:00
Dimitrij Denissenko e662309bf4 Fixed redirects logic - 'max' means less that or equals to 2015-03-19 11:40:18 +00:00
Dimitrij Denissenko c21e5f3255 Add Redis Cluster support. 2015-03-19 11:19:55 +02:00