Commit Graph

1265 Commits

Author SHA1 Message Date
Vladimir Mihailenco d6cb688ea7 Cleanup context implementation 2018-03-07 13:50:14 +02:00
Vladimir Mihailenco 3a38e90858 Require Go 1.7+ and use context.Context 2018-03-07 13:43:52 +02:00
Vladimir Mihailenco a64d3e1ef1 Fix build on 32bit arch 2018-03-07 12:41:11 +02:00
T. Thyer 063393987a Add option to balance load between master node and replica nodes (#729)
* Add option to balance load between master node and replica nodes
2018-03-07 12:23:38 +02:00
Vladimir Mihailenco 852a60d520 Fix go vet 2018-03-07 12:09:45 +02:00
Vladimir Mihailenco e9e73a92c0 travis: test on Go 1.10 2018-03-07 12:09:45 +02:00
Vladimir Mihailenco 5e72be1cbf Extract clusterStateHolder 2018-03-07 12:09:45 +02:00
Vladimir Mihailenco f13fc5381c Extract commands info cache 2018-03-07 12:09:45 +02:00
Pavel Prokopenko 0082bdcd4b add WrapProcess to UniversalClient interface (#728) 2018-03-06 09:15:14 +02:00
Evan Goldschmidt 7acec74c59 Script: Fix `Exists` to use hash instead of source (#726)
`SCRIPT EXISTS` accepts a hash, not the raw source: https://redis.io/commands/script-exists
2018-03-05 11:03:03 +02:00
janaurka d0a2b8bdf3 Impement Config Rewrite command (#722)
This commit adds support for config rewrite as documented in
https://redis.io/commands/config-rewrite .
2018-03-01 10:37:51 +02:00
Tess Thyer 55c9929dba Change Makefile to use sed syntax that will work for both GNU and BSD sed (#719)
* Use sed syntax that will work with both GNU and BSD sed
2018-02-27 20:05:21 +02:00
Vladimir Mihailenco 68362cfda1 Fix doc 2018-02-27 16:11:25 +02:00
Vladimir Mihailenco e075ad33d3 Simplify test 2018-02-27 16:10:17 +02:00
Vladimir Mihailenco cac7aa8c36 Reduce ClusterOptions.MaxRedirects from 16 to 8 2018-02-27 16:10:17 +02:00
Vladimir Mihailenco cc47cf2439 Use fresh cluster state after sleeping 2018-02-27 16:10:17 +02:00
Vladimir Mihailenco 9df09066e2 Store all created cluster nodes in allNodes 2018-02-27 14:48:59 +02:00
Vladimir Mihailenco e5648e8c7c Fix flaky test 2018-02-22 15:01:48 +02:00
Vladimir Mihailenco 56dea1f39a Fix proto.RedisError in slices 2018-02-22 14:24:27 +02:00
Vladimir Mihailenco 71ed499c46 Decrease accurracy 2018-02-20 11:00:19 +02:00
Vladimir Mihailenco 4e89aeeae4 Increase timeout 2018-02-20 10:28:34 +02:00
Vladimir Mihailenco 036680734d Increase backoff in failover tests 2018-02-20 10:14:24 +02:00
Vladimir Mihailenco fd2200b051 Add TxPipeline race test 2018-02-20 10:05:11 +02:00
Vladimir Mihailenco fa7f64f7f2 Rework retrying 2018-02-16 13:40:23 +02:00
Huan Du 4598ed0eac Correctly parse EVAL response containing customized error (#710)
* always parse all content in an array including error
2018-02-16 13:39:56 +02:00
Huan Du daab7c60d0 add new command Touch and SwapDB 2018-02-15 10:06:03 +02:00
Vladimir Mihailenco 32f020f1fa
Merge pull request #709 from go-redis/fix/sort-store
Add SortStore and fix Sort signature
2018-02-13 16:24:04 +02:00
Vladimir Mihailenco 6b10d46cfb Fix tests 2018-02-13 16:23:49 +02:00
Vladimir Mihailenco e456ee7148 Add SortStore and fix Sort signature 2018-02-13 16:08:11 +02:00
Vladimir Mihailenco 8e5e567b90
Merge pull request #707 from go-redis/fix/update-latency-async
Update cluster node latency asynchronously
2018-02-13 11:42:23 +02:00
Vladimir Mihailenco 1a4d34448d Update cluster node latency asynchronously 2018-02-13 11:42:06 +02:00
yifei.huang 8b4fa6d443 Add WrapProcessPipeline 2018-01-30 16:47:29 +02:00
Vladimir Mihailenco 2c11cbf01a
Merge pull request #698 from KosToZyB/master
golint warnings are removed
2018-01-25 10:05:55 +02:00
Veselkov Konstantin fbec95a796 fix rename 2018-01-25 11:15:44 +04:00
Veselkov Konstantin ea4d6c3490 golint warnings are removed 2018-01-24 22:38:47 +04:00
Vladimir Mihailenco 4021ace056
Merge pull request #696 from go-redis/fix/cluster-closed-node
Retry if node is closed; close nodes with delay
2018-01-17 13:13:24 +02:00
Vladimir Mihailenco a84876237b Retry if node is closed; close nodes with delay 2018-01-17 13:00:11 +02:00
Vladimir Mihailenco abb85b0fb8 Remove StringToBytes 2018-01-15 16:15:20 +02:00
Vladimir Mihailenco 041b11eb4f
Merge pull request #693 from FJSDS/change_bytes_string
fix unsafe.go
2018-01-15 16:12:18 +02:00
FJSDS a8340c6b74 fix unsafe.go 2018-01-11 16:42:52 +08:00
Vladimir Mihailenco ce05aa5775
Merge pull request #690 from beono/beono/fmtquotes
removed quotes surrounding %q
2018-01-04 14:45:42 +02:00
Eldar Rakhimberdin ea762c666e
removed quotes surrounding %q
%q is a single-quoted character literal safely escaped with Go syntax. It doesn't need additional quotes.
2018-01-04 15:20:49 +03:00
Vladimir Mihailenco 73b70592cd
Merge pull request #688 from go-redis/fix/random-node
Pick random node when command does not have keys
2017-12-28 17:12:13 +02:00
Vladimir Mihailenco e5040d9ce7 Don't test in Go 1.4 2017-12-28 17:00:22 +02:00
Vladimir Mihailenco 3de5605ab2 Pick random node when command does not have keys 2017-12-28 16:47:08 +02:00
Vladimir Mihailenco cfed9ab470
Merge pull request #686 from go-redis/fix/redis-nil
Mention redis.Nil
2017-12-27 13:38:22 +02:00
Vladimir Mihailenco 624096af5e Mention redis.Nil 2017-12-27 13:29:46 +02:00
Vladimir Mihailenco 58bf6f4abe Add Airbrake badge 2017-12-27 13:10:36 +02:00
Vladimir Mihailenco 9c885d5ba8 Merge pull request #683 from sudhirj/feature/universal_subscriptions
Added subscription interfaces to universal client
2017-12-15 15:14:14 +02:00
Sudhir Jonathan 08ae2d0555 Added subscription interfaces to universal client 2017-12-14 22:06:57 +05:30