Commit Graph

145 Commits

Author SHA1 Message Date
Vladimir Mihailenco b90cea8e8d More benchmarks. 2016-03-10 11:23:03 +02:00
Vladimir Mihailenco 43aade818a Set conn.UsedAt when connection is created. Fixes #263. 2016-03-04 10:33:51 +02:00
Vladimir Mihailenco 78d40d5bd7 Update conn.UsedAt on Read/Write. Fixes #263. 2016-03-02 13:26:05 +02:00
Anatolii Mihailenco f7a4bd5023 Add pool instrumentation. 2016-01-19 20:08:22 +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 9987f2abaa Add PubSub.ReceiveMessage. 2015-09-06 13:54:04 +03:00
Vladimir Mihailenco a78354cb12 Benchmark set/get with bigger values. 2015-07-20 15:02:44 +03:00
Vladimir Mihailenco ba4682c2a3 Fix benchmarks to use Redis on default port and FLUSHDB before run. 2015-07-18 11:22:42 +03:00
Vladimir Mihailenco 029065eb68 Fix nil pool on read timeout. Fixes #135. 2015-07-13 13:45:37 +03:00
Vladimir Mihailenco 3c1f2bd45a Allow setting and scaning interface{} values. 2015-07-11 11:54:26 +03:00
Vladimir Mihailenco 9b31a45f9e Add BenchmarkRedisSetBytes. 2015-06-06 10:19:51 +03:00
Vladimir Mihailenco a8fe55571b pool: put connection to the list before returning it. 2015-06-03 16:45:46 +03:00
Vladimir Mihailenco f531b3b493 Add Client.String method. 2015-05-18 15:14:12 +03:00
Adrien Bustany 5f85be3173 commands: reduce memory allocations in ZAdd. 2015-05-15 13:10:42 +03:00
Vladimir Mihailenco 18ea75d2ad Release redis.v3 beta. 2015-05-14 16:24:19 +03:00
Vladimir Mihailenco 1078a303ea sentine: don't pass DB and Password to Sentinel client. 2015-05-14 16:13:45 +03:00
Vladimir Mihailenco 8c67e00efc Add auto-retry and MaxRetries option. Fixes #84. 2015-05-10 17:02:47 +03:00
Vladimir Mihailenco d3a8d04b9c Merge pull request #97 from go-redis/fix/pool-closes-all-connections
Fix pool to close all connections when client is closed.
2015-05-05 12:38:46 +03:00
Vladimir Mihailenco f3f44aefbe Fix pool to close all connections when client is closed. 2015-05-05 12:17:44 +03:00
Vladimir Mihailenco 121cfc5792 Remove deprecated funcs. 2015-05-02 16:22:06 +03:00
Vladimir Mihailenco e6d90baaf8 Add very basic cluster benchmark. Cleanup other benchmarks. 2015-04-28 18:14:19 +03:00
Vladimir Mihailenco d3fb658fef Fix pool waiting for connection that was removed. 2015-04-17 15:42:35 +03:00
Vladimir Mihailenco 99fe9114b1 Add ClusterPipeline. 2015-04-13 09:31:30 +03:00
Vladimir Mihailenco 2dc61d458a Refactor Set, SetNX and SetXX with expiration. 2015-03-30 16:49:08 +03:00
Dimitrij Denissenko c21e5f3255 Add Redis Cluster support. 2015-03-19 11:19:55 +02:00
Dimitrij Denissenko 66cbad53a1 Minor test improvements 2015-02-09 08:14:41 +00:00
Vladimir Mihailenco 7f87de6109 Make sentinel tests more reliable. 2015-01-30 16:45:57 +02:00
Vladimir Mihailenco 15a90c831b Redirect cmds output to stdout. 2015-01-30 15:46:17 +02:00
Dimitrij Denissenko e16db84e4a Better redis process abstraction 2015-01-25 11:56:11 +00:00
Dimitrij Denissenko f6bca78168 Migrates tests to ginkgo/gomega 2015-01-25 11:56:03 +00:00
Vladimir Mihailenco e617904962 Merge pull request #55 from geoffgarside/fix-sort-by
Fix SORT .. BY pattern syntax error
2014-12-09 13:07:59 +02:00
Geoff Garside c9c1f18a58 Add failing test case for SORT .. BY pattern. 2014-12-09 10:40:32 +00:00
Vladimir Mihailenco 20c738a103 Enable race tests. 2014-11-18 12:11:06 +02:00
Vladimir Mihailenco f790046fea Merge pull request #50 from go-redis/fix/upgrade-to-redis-2814
Fix PubSubNumSub to work with Redis 2.8.14.
2014-11-06 13:17:51 +02:00
Vladimir Mihailenco c54b831796 Fix PubSubNumSub to work with Redis 2.8.14. 2014-11-06 13:13:24 +02:00
Vladimir Mihailenco c438d40377 Add optimization for '*' pattern in PubSubChannels. 2014-10-07 15:40:00 +03:00
Vladimir Mihailenco a11f80d9d7 Add pubsub* commands. 2014-10-07 13:56:26 +03:00
Vladimir Mihailenco 551257a988 Rewrite rate limiter. 2014-10-02 11:39:06 +03:00
Vladimir Mihailenco 2508d0a57e Add Dialer option. 2014-09-30 11:52:09 +03:00
Vladimir Mihailenco 9ac69a08db Add StringCmd helpers. 2014-07-31 15:18:23 +03:00
Vladimir Mihailenco 2651b57a91 Better test name. 2014-07-13 15:22:52 +03:00
Vladimir Mihailenco aff229a228 Rewrite benchmarks using std testing lib. 2014-07-13 15:01:52 +03:00
Vladimir Mihailenco 537971dca1 Fix db selection. Fixes #31. 2014-07-08 11:24:19 +03:00
Vladimir Mihailenco dc9bffa57d Rework ZRangeWithScores. 2014-07-05 13:46:27 +03:00
Vladimir Mihailenco 00a131e3a9 More benchmarks. 2014-07-04 15:19:45 +03:00
Vladimir Mihailenco 1b515b695a Bump version. 2014-07-02 18:04:04 +03:00
Vladimir Mihailenco ac192c726d Fix tests. 2014-07-02 18:00:58 +03:00
Vladimir Mihailenco 4ea3e7531b Update gocheck import path. 2014-07-02 16:11:10 +03:00
Vladimir Mihailenco 5f52b5823f pool: rate limit number of open connections. 2014-05-15 14:21:37 +03:00
Vladimir Mihailenco 3bea997988 all: switch to gopkg.in. 2014-05-11 10:44:22 +03:00
Vladimir Mihailenco be223ae3c6 Add Travis CI config. 2013-12-30 13:45:04 +02:00
blaxill 45e45f8422 Fix ZRevRangeByScoreWithScores to return scores. 2013-06-25 11:11:07 +03:00
Vladimir Mihailenco c955223298 Add another test for getting many keys. 2013-06-08 12:11:43 +03:00
Vladimir Mihailenco 0bd64b143c Clean up benchmarks. 2013-04-08 12:43:38 +03:00
Vladimir Mihailenco f14cf3644b Add test for reading many keys. 2013-03-21 12:28:19 +02:00
QLeelulu ef0cc25b9b Fix float64 formatting. 2013-03-05 12:21:42 +02:00
Vladimir Mihailenco a07e186fb3 Fix all examples in readme. Req now implements Stringer interface for debugging purposes. 2013-02-17 18:49:17 +02:00
Vladimir Mihailenco ed0d065f72 Add test for timeout in BLPOP. 2013-02-02 16:04:41 +02:00
Vladimir Mihailenco 5a90e32c63 Add *Map commands where possible. 2013-02-02 14:17:01 +02:00
Vladimir Mihailenco f64761880b Add NewUnixClient to connect to the unix sockets. 2013-02-02 12:50:43 +02:00
Vladimir Mihailenco 7cda614ca1 Fix compilation. 2012-11-11 16:37:50 +02:00
Vladimir Mihailenco 1fa1eee592 Fix failing test. 2012-10-14 16:22:54 +03:00
Vladimir Mihailenco a94daf0c96 parser: Introduce parserError. 2012-08-26 12:18:42 +03:00
Vladimir Mihailenco ee844aaf1d multi: Properly reset client in case of empty transaction. 2012-08-25 21:54:35 +03:00
Vladimir Mihailenco e40a6041e1 Add SHUTDOWN command. 2012-08-25 15:35:39 +03:00
Vladimir Mihailenco f56748aab9 Use net.Conn instead of io.ReadWriteCloser. 2012-08-20 14:50:25 +03:00
Vladimir Mihailenco 9ad848d04b Add support for scripting commands. 2012-08-20 13:42:33 +03:00
Vladimir Mihailenco 583e901221 Use IfaceSliceReq for CONFIG GET because it can return (nil) on Redis 2.4.*. 2012-08-20 00:16:26 +03:00
Vladimir Mihailenco 9764065750 Reuse connections to Redis during tests. 2012-08-19 23:59:52 +03:00
Vladimir Mihailenco a654224ced pipeline: Add DiscardQueued method. 2012-08-19 23:19:00 +03:00
Vladimir Mihailenco 569b1b07ac Add BITCOUNT and BITOP commands. 2012-08-19 15:57:58 +03:00
Vladimir Mihailenco 11e1783560 Review API. 2012-08-17 21:36:48 +03:00
Vladimir Mihailenco df1b8a3f5c Fix reading zero-length bulk reply. 2012-08-15 23:48:32 +03:00
Vladimir Mihailenco a2f5423658 Reuse buffer for constructing request. 2012-08-14 18:20:22 +03:00
Vladimir Mihailenco 625adac9ab multi: Improve API. 2012-08-13 14:45:32 +03:00
Vladimir Mihailenco 59f901d62f parser: greatly simplify reply parsing. 2012-08-12 21:41:44 +03:00
Vladimir Mihailenco e7eb2a03f4 request: Export ErrValNotSet. 2012-08-11 18:02:28 +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 de86ea1993 Use ReadLiner interface where possible. 2012-08-09 14:51:43 +03:00
Vladimir Mihailenco b2e3463af1 Get rid of custom buffered reader. 2012-08-09 13:12:41 +03:00
Vladimir Mihailenco 1d3a223419 Check every req for error. 2012-08-06 15:45:38 +03:00
Vladimir Mihailenco 05223145e0 Change API and update tests. 2012-08-06 15:09:48 +03:00
Vladimir Mihailenco c5c8ec6b0c Add support for connection initialisation. 2012-08-06 11:33:49 +03:00
Vladimir Mihailenco b36e10bf80 Properly read replies that are bigger than read buffer. 2012-08-05 21:09:38 +03:00
Vladimir Mihailenco 19a5db6632 Add connnection pool and improve API. 2012-08-05 15:09:43 +03:00
Vladimir Mihailenco 859c5fb03b Add test for running commands from different goroutines. 2012-07-29 13:02:45 +03:00
Vladimir Mihailenco 9d06871d6e Fix waiting reply on empty queue. 2012-07-29 12:51:29 +03:00
Vladimir Mihailenco 41137c2e6f Add pipelining support. 2012-07-29 12:42:00 +03:00
Vladimir Mihailenco 4814ee7600 Add sorted sets support. 2012-07-27 17:21:50 +03:00
Vladimir Mihailenco 9c5def7f1f Fix imports. 2012-07-27 14:43:30 +03:00
Vladimir Mihailenco 153bd05fb7 Fix multi/exec and add more commands. 2012-07-26 18:16:17 +03:00
Vladimir Mihailenco a74d9a5801 Initial commit. 2012-07-25 16:00:50 +03:00