Commit Graph

123 Commits

Author SHA1 Message Date
Vladimir Mihailenco dbd2c99ba9 Rework pipeline retrying 2017-09-01 14:56:00 +03:00
Vladimir Mihailenco dbcf95c85e Fix PubSub.Subscribe deadlock 2017-08-01 14:21:26 +03:00
Vladimir Mihailenco 6060f097e1 Add PubSub support to Cluster client 2017-07-09 10:07:20 +03:00
Vladimir Mihailenco 0d94a7bc88 Fix race in PubSub 2017-06-29 17:09:52 +03:00
Vladimir Mihailenco fbc8000fd1 Resent client pool when sentinel switches master 2017-06-29 16:53:49 +03:00
Vladimir Mihailenco 18c1db9466 Doc 2017-05-11 17:02:26 +03:00
Vladimir Mihailenco 13b6f3ffb7 Fix conn management in PubSub 2017-04-24 14:06:27 +03:00
Vladimir Mihailenco 9ebd89772a Rework PubSub conn management 2017-04-24 13:41:03 +03:00
Vladimir Mihailenco 7646d48e29 Initialize PubSub connection 2017-04-18 13:12:38 +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
Vladimir Mihailenco 8d52a95269 Simplify PubSub API 2017-04-11 16:53:55 +03:00
Vladimir Mihailenco 34ea5f98eb Add Channel helper 2017-04-11 16:18:35 +03:00
Vladimir Mihailenco ef95182d29 Code cleanup 2017-03-31 15:11:11 +03:00
Vladimir Mihailenco 58e9c55d8e Use simple PING for compatibility 2017-02-23 15:29:38 +02:00
Vladimir Mihailenco 8040d63c4f Remove gopkg.in 2017-02-19 09:49:21 +02:00
Vladimir Mihailenco ce4fd8b677 Fix ReceiveMessage to work without any subscriptions. 2017-02-08 14:15:32 +02:00
Vladimir Mihailenco b4efc45f1c Set read/write timeouts more consistently. 2016-12-03 17:30:13 +02:00
Vladimir Mihailenco 2c5b239ecb Remove internal errors package that clashes with std lib. 2016-10-09 11:44:31 +00:00
Vladimir Mihailenco f5245efa73 Prepare v5 release. 2016-10-09 10:56:53 +00:00
Vladimir Mihailenco e57ac63b6e Simplify resubscribing in PubSub. 2016-09-29 12:33:47 +00:00
Sergey Shcherbina 850045d6a6 Use appendIfNotExists instead of append. Fixed bug when connection loss to server leads to exponential grow of channels and patterns array in PubSub in every reconnect 2016-09-29 15:12:35 +05:00
Vladimir Mihailenco 4210c090b1 Move Publish channel to cmdable. Remove method that was deprecated in v3. 2016-07-21 13:04:40 +00:00
Dimitrij Denissenko 7d856c5595 Make proto/parser an internal package 2016-07-02 13:52:10 +01: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
Vladimir Mihailenco 31abb18d9a Move logger to internal package. 2016-04-09 14:52:01 +03:00
Vladimir Mihailenco 38d30a4bab Use redis.v4 that is in alpha/beta state. 2016-04-09 13:27:16 +03:00
Vladimir Mihailenco d79074eadb Remove PMessage. 2016-04-09 11:51:13 +03:00
Vladimir Mihailenco 6e1aef39ea Faster and simpler pool. 2016-03-19 11:49:13 +02:00
Vladimir Mihailenco 707472c09b Fix connection initialization. 2016-03-15 14:21:53 +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 ad0739be99 Extract pool package. Add pool benchmark. 2016-03-12 10:52:13 +02:00
Vladimir Mihailenco 0db1d730c8 Improve pool tests by verifying number of created connections. 2016-03-09 14:36:14 +02:00
Vladimir Mihailenco 673e999431 Close connection on network timeout. 2016-03-09 14:36:14 +02:00
Vladimir Mihailenco 110e93a8e4 Simplify connection management with sticky connection pool. Fixes #260. 2016-03-01 14:12:25 +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 1739cd9380 pubsub: add PSubscribe test. Updates #233. 2015-12-31 11:27:28 +02:00
Dolf Schimmel (Freeaqingme) 84cd769290 Merge branch 'master' of github.com:Freeaqingme/go-redis into HEAD 2015-12-31 00:43:42 +01:00
Dolf Schimmel (Freeaqingme) 6eec22a5e5 Bugfix: pubsub/psubscribe should register a pattern rather than channel 2015-12-31 00:43:28 +01:00
Vladimir Mihailenco d7c44c7899 Better rate limited message. 2015-12-22 15:45:03 +02:00
Vladimir Mihailenco 42141f11d1 Improve ReceiveMessage. 2015-12-02 15:40:44 +02:00
Vladimir Mihailenco b6b689904a Fix test. 2015-11-22 17:53:44 +02:00
Vladimir Mihailenco ade3425870 multi: fix recovering from bad connection. 2015-11-14 14:44:16 +02:00
Vladimir Mihailenco 25164333ff Fix pool panic on slow connection with MaxRetries > 0. 2015-10-13 12:10:04 +03:00
Vladimir Mihailenco b23b9b7727 Refactor reply parser. 2015-10-07 17:09:20 +03:00
Vladimir Mihailenco c809246d8b Clarify thread safety. Fixes #166. 2015-09-12 09:36:03 +03:00
Vladimir Mihailenco 9987f2abaa Add PubSub.ReceiveMessage. 2015-09-06 13:54:04 +03:00
Vladimir Mihailenco 58cb170ac0 Get rid of custom bufio package. 2015-09-03 18:41:35 +03:00
Vladimir Mihailenco d7edae84cf pubsub: improve API and docs. 2015-07-11 13:42:44 +03:00
Vladimir Mihailenco f901321d84 pubsub: add PING support. 2015-07-11 13:12:47 +03:00
Vladimir Mihailenco 3c1f2bd45a Allow setting and scaning interface{} values. 2015-07-11 11:54:26 +03:00
Vladimir Mihailenco b1946ee532 More comments. 2015-05-23 18:17:45 +03:00
Vladimir Mihailenco f79308a137 Rewrite PubSub example. 2015-05-23 14:15:58 +03:00
Vladimir Mihailenco 8c67e00efc Add auto-retry and MaxRetries option. Fixes #84. 2015-05-10 17:02:47 +03:00
Dimitrij Denissenko c21e5f3255 Add Redis Cluster support. 2015-03-19 11:19:55 +02:00
Vladimir Mihailenco 678b8b3667 Cleanup. 2014-06-28 14:47:37 +03:00
Vladimir Mihailenco a042cdda74 Redis Sentinel support. 2014-06-14 14:46:11 +03:00
Vladimir Mihailenco 3bea997988 all: switch to gopkg.in. 2014-05-11 10:44:22 +03:00
Vladimir Mihailenco 4e3743c0d6 pub/sub: Clean up message parsing. 2012-08-25 21:39:35 +03:00
Vladimir Mihailenco b6ae953e1c Add ParseReq method and tweak benchmarks. 2012-08-24 15:16:12 +03:00
Vladimir Mihailenco 9764065750 Reuse connections to Redis during tests. 2012-08-19 23:59:52 +03:00
Vladimir Mihailenco 11e1783560 Review API. 2012-08-17 21:36:48 +03:00
Vladimir Mihailenco a2f5423658 Reuse buffer for constructing request. 2012-08-14 18:20:22 +03:00
Vladimir Mihailenco 2f4156dd04 Extract pipeline and multi/exec support to separate files. 2012-08-11 17:42:10 +03:00
Vladimir Mihailenco 83664bb3a8 Add support for watch in transactions. 2012-08-09 17:06:26 +03:00
Vladimir Mihailenco 052cef49d2 Add support for psubscribe and punsubscribe. 2012-08-09 15:27:06 +03:00
Vladimir Mihailenco b2e3463af1 Get rid of custom buffered reader. 2012-08-09 13:12:41 +03:00
Vladimir Mihailenco b2805a5e04 Rename OneConnPool to SingleConnPool. 2012-08-06 17:04:30 +03:00
Vladimir Mihailenco ee618a6290 Fix PubSubClient connection pool management. 2012-08-06 17:02:45 +03:00
Vladimir Mihailenco 19a5db6632 Add connnection pool and improve API. 2012-08-05 15:09:43 +03:00
Vladimir Mihailenco e73e87fc11 Improve API and perfomance. 2012-07-26 21:43:21 +03:00
Vladimir Mihailenco a74d9a5801 Initial commit. 2012-07-25 16:00:50 +03:00