Commit Graph

45 Commits

Author SHA1 Message Date
Vladimir Mihailenco 0db1d730c8 Improve pool tests by verifying number of created connections. 2016-03-09 14:36:14 +02:00
Vladimir Mihailenco 78d40d5bd7 Update conn.UsedAt on Read/Write. Fixes #263. 2016-03-02 13:26:05 +02:00
Vladimir Mihailenco 110e93a8e4 Simplify connection management with sticky connection pool. Fixes #260. 2016-03-01 14:12:25 +02:00
Vladimir Mihailenco e750d2b7e2 Use uint32 because uint64 requires manual alignment on 386 arch. Fixes #256. 2016-02-18 12:42:35 +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
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 fb44c891dd Fix sporadic pool timeouts with IdleTimeout != 0. Fixes #195. 2015-11-27 13:52:35 +02:00
Leonid Shagabutdinov 62ce552959 Fix PubSub panic on concurrent Close. 2015-11-26 17:09:09 +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 58cb170ac0 Get rid of custom bufio package. 2015-09-03 18:41:35 +03:00
Vladimir Mihailenco 029065eb68 Fix nil pool on read timeout. Fixes #135. 2015-07-13 13:45:37 +03:00
Vladimir Mihailenco a8fe55571b pool: put connection to the list before returning it. 2015-06-03 16:45:46 +03:00
Vladimir Mihailenco 7d886330f1 pool: close all connections at once. 2015-06-03 14:50:43 +03:00
Vladimir Mihailenco 9d6c73eb9d Don't panic if list is closed and conn can't be found. 2015-06-03 14:18:15 +03:00
Vladimir Mihailenco 40b429df49 Reduce number of various options structs. Slightly reword comments. 2015-05-23 17:56:18 +03:00
Vladimir Mihailenco b8b073f3bf Merge pull request #101 from go-redis/feature/auto-retry-and-max-retries
Add auto-retry and MaxRetries option. Fixes #84.
2015-05-14 15:11:40 +03:00
Vladimir Mihailenco 8c67e00efc Add auto-retry and MaxRetries option. Fixes #84. 2015-05-10 17:02:47 +03:00
Vladimir Mihailenco 575fe0d0b5 pool: gracefully close pool by giving users time to free connection. 2015-05-10 11:15:59 +03:00
Vladimir Mihailenco f3f44aefbe Fix pool to close all connections when client is closed. 2015-05-05 12:17:44 +03:00
Dimitrij Denissenko 6313dc03a7 Avoid remove/new/init loop in pool 2015-04-23 10:33:59 +01:00
Dimitrij Denissenko 750d14fe21 Ensure all new connections are initialised 2015-04-22 08:32:54 +01:00
Vladimir Mihailenco d3fb658fef Fix pool waiting for connection that was removed. 2015-04-17 15:42:35 +03:00
Vladimir Mihailenco fe931fc851 Add reaper that closes idle connections to the cluster. 2015-04-05 15:41:16 +03:00
Dimitrij Denissenko e3ba7e7bf6 Improved rate-limiter, use ratelimit package 2015-03-25 17:02:26 +00:00
Dimitrij Denissenko c21e5f3255 Add Redis Cluster support. 2015-03-19 11:19:55 +02:00
Vladimir Mihailenco f9d30778d2 Merge pull request #70 from go-redis/feature/faster-pool
Faster, lock-free pool
2015-02-02 11:05:25 +02:00
Dimitrij Denissenko a6385ccf0a Documented options 2015-01-31 14:54:37 +00:00
Dimitrij Denissenko 9f9822edd2 Use a lock-free connection pool 2015-01-31 13:20:37 +00:00
Dimitrij Denissenko 5280246642 Minor. Report rate-limiter errors correctly. 2015-01-31 12:04:30 +00:00
Vladimir Mihailenco 9c17ce2d93 Improve rate limited error message. 2015-01-31 10:12:01 +02:00
Vladimir Mihailenco 551257a988 Rewrite rate limiter. 2014-10-02 11:39:06 +03:00
Vladimir Mihailenco 1c2b863036 rate_limit: break loop when pool is closed. 2014-09-04 10:22:44 +03:00
Vladimir Mihailenco 3836435639 Remove glog. 2014-07-31 16:01:54 +03:00
Vladimir Mihailenco 97039c229c Reuse write buffer. 2014-07-13 15:07:37 +03:00
Vladimir Mihailenco 678b8b3667 Cleanup. 2014-06-28 14:47:37 +03:00
Vladimir Mihailenco 5ea8ad46d6 Fix import path. 2014-06-18 16:47:21 +03:00
Vladimir Mihailenco a042cdda74 Redis Sentinel support. 2014-06-14 14:46:11 +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