Commit Graph

14 Commits

Author SHA1 Message Date
Vladimir Mihailenco 6090af686e chore: remove old options 2022-10-06 13:19:35 +03:00
Vladimir Mihailenco f6a8adc50c fix: remove conn reaper from the pool and uptrace option names 2022-07-28 15:17:59 +03:00
Dominik Menke dfedc31d20 Add query parameter parsing to ParseURL()
Before this change, ParseURL would only accept a very restricted
set of URLs (it returned an error, if it encountered any parameter).

This commit introduces the ability to process URLs like

	redis://localhost/1?dial_timeout=10s

and similar.

Go programs which were providing a configuration tunable (e.g.
CLI flag, config entry or environment variable) to configure
the Redis connection now don't need to perform this task
themselves.
2021-09-14 18:41:31 +02:00
Dominik Menke 3ac3452fe5 Refactor TestParseURL
This is in preparation for supporting query parameters
in ParseURL:

- use an expected *Options instance to execute assertions on
- extract assertions into helper function
- enable parallel testing
- condense test table
2021-09-10 20:55:16 +02:00
Vladimir Mihailenco 9b6ee9c3cc chore: gofmt all code 2021-09-08 16:52:29 +03:00
Vladimir Mihailenco 9e4063ab5a Add redis prefix to errors 2020-09-28 15:29:35 +03:00
Roman Suvorov d31cf6c328
Add unix socket connection by url stirng. (#1511)
* add unix connectin by url string
2020-09-28 15:26:08 +03:00
filipe oliveira cf6cf7f450 Add AuthACL 2020-05-21 08:59:51 +03:00
andriikushch b834145dc7 Add test for read timeout option (#877)
Add test for ReadTimeout option
2018-10-05 09:46:29 +03: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 8ddd2beaee Fix error message for Go 1.8. 2017-01-26 16:34:09 +02:00
Edward Muller 4aa583b6f8 Updates based on PR feedback 2016-11-15 10:27:20 -08:00
Edward Muller 70eddf606d Place these tests behind a build tag
Sub test support doesn't work for go < 1.7
2016-11-14 09:40:12 -08:00
Edward Muller 019ff6eb38 Add support for parsing redis:// and rediss:// URLs
This includes setting up a default dialer that handles the ssl
handshake.
2016-11-14 08:50:05 -08:00