Commit Graph

2499 Commits

Author SHA1 Message Date
Vladimir Mihailenco 9b48b5e45f chore: add example how to delete keys without a ttl 2021-11-19 17:05:07 +02:00
ffenix113 f6974ebb5c fix: update some argument counts in pre-allocs
In some cases number of pre-allocated places in
argument array is missing 1 or 2 elements,
which results in re-allocation of twice as large array
2021-11-05 19:13:47 +01:00
Vladimir Mihailenco 47ac23e055 Merge branch 'master' of github.com:go-redis/redis 2021-11-05 16:17:26 +02:00
Vladimir Mihailenco c7e913ce48 chore: update otel example 2021-11-05 16:17:17 +02:00
Vladimir Mihailenco 25378ca292
Merge pull request #1934 from kristinnardal2/redisotel-span-kind
fix(extra/redisotel): set span.kind attribute to client
2021-10-27 11:48:22 +03:00
Kristinn Björgvin Árdal 065b200070 fix(extra/redisotel): set span.kind attribute to client
According to the opentelemetry specification this should always be set to client for database client
libraries.

I've also removed the SetAttributes call and instead set the attributes during creation of the span.
This is what the library SHOULD be doing according to the opentelemetry api specification.
2021-10-27 10:28:48 +02:00
Vladimir Mihailenco 38d398f630 chore: fix linter 2021-10-24 09:55:27 +03:00
Vladimir Mihailenco a52a508bbf
Merge pull request #1930 from Pyrodash/master
feat: add support for time.Duration write and scan
2021-10-24 09:54:17 +03:00
Jackie a2a463b123 test: add test case for setting and scanning durations 2021-10-23 00:10:30 +02:00
Jackie 2f1b74e20c feat: add support for time.Duration write and scan 2021-10-21 18:37:17 +02:00
dependabot[bot] 0260525aa0
Bump github.com/onsi/ginkgo from 1.16.4 to 1.16.5 (#1925)
Bumps [github.com/onsi/ginkgo](https://github.com/onsi/ginkgo) from 1.16.4 to 1.16.5.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/ginkgo/compare/v1.16.4...v1.16.5)

---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-18 17:17:47 +08:00
Vladimir Mihailenco ca2b16333e
Merge pull request #1922 from HurSungYun/cmdInfo_logging_context
chore: use ctx parameter in cmdInfo
2021-10-15 12:13:27 +03:00
Ethan Hur a67d9129e6 chore: use ctx parameter in cmdInfo 2021-10-15 14:49:00 +09:00
Vladimir Mihailenco 2b6611c4fd Merge branch 'master' of github.com:go-redis/redis 2021-10-05 10:07:16 +03:00
Vladimir Mihailenco acf1c1831b chore: fix links 2021-10-05 10:07:08 +03:00
Vladimir Mihailenco 40c1cc3f31
Merge pull request #1918 from pfreixes/add_whitespace_before_addr
fix: add whitespace for avoid unlikely colisions
2021-10-05 08:55:04 +03:00
Pau Freixes 96f53a0159 fix: format 2021-10-04 17:22:18 +02:00
Pau Freixes 7f7c181761 fix: add whitespace for avoid unlikely colisions 2021-10-04 15:53:57 +02:00
Vladimir Mihailenco fa515240d4
Merge pull request #1917 from go-redis/release/v8.11.4
chore: release v8.11.4 (release.sh)
2021-10-04 16:40:48 +03:00
Vladimir Mihailenco 0457d0add6 chore: release v8.11.4 (release.sh) 2021-10-04 16:28:19 +03:00
Vladimir Mihailenco 6dcfc56151 chore: use conv commit message 2021-10-04 16:27:16 +03:00
Vladimir Mihailenco 86258a11a9 chore: lazy reload when moved or ask 2021-10-04 13:16:33 +03:00
Pau Freixes 98bb99ddc2
Fix Redis Cluster issue during roll outs of new nodes with same addr (#1914)
* fix: recycle connections in some Redis Cluster scenarios

This issue was surfaced in a Cloud Provider solution that used for
rolling out new nodes using the same address (hostname) of the nodes
that will be replaced in a Redis Cluster, while the former ones once
depromoted as Slaves would continue in service during some mintues
for redirecting traffic.

The solution basically identifies when the connection could be stale
since a MOVED response will be returned using the same address (hostname)
that is being used by the connection. At that moment we consider the
connection as no longer usable forcing to recycle the connection.
2021-10-04 13:10:42 +03:00
Vladimir Mihailenco 507203108a chore: add Lua scripting example 2021-09-27 17:29:41 +03:00
Vladimir Mihailenco 739c188212 chore: tweak GH actions to run all jobs 2021-09-27 12:08:34 +03:00
Vladimir Mihailenco cc09f96b8f
Merge pull request #1909 from go-redis/feature/slice-helpers
feat: add Cmd.{String,Int,Float,Bool}Slice helpers and an example
2021-09-27 11:46:25 +03:00
Vladimir Mihailenco 5d3d293cc9 feat: add Cmd.{String,Int,Float,Bool}Slice helpers and an example 2021-09-27 11:11:05 +03:00
Vladimir Mihailenco 329d87fc44
Merge pull request #1906 from Stavrospanakakis/master
feat: add SetVal method for each command
2021-09-26 09:16:44 +03:00
Stavros Panakakakis 168981da2d feat: add SetVal method for each command 2021-09-25 18:12:26 +03:00
Vladimir Mihailenco afd8445978 chore: update link 2021-09-24 17:10:01 +03:00
Vladimir Mihailenco e2ecabec44
Merge pull request #1904 from go-redis/fix/upd-dependencies
chore: update dependencies
2021-09-23 17:27:16 +03:00
Vladimir Mihailenco 3f99e7b13b chore: update dependencies 2021-09-23 16:49:39 +03:00
Vladimir Mihailenco 8648971b29
Merge pull request #1899 from alexus1024/master
Add support for BLMove command
2021-09-23 16:26:55 +03:00
Vladimir Mihailenco fddf086cbe
Merge pull request #1896 from jsievenpiper/main
feat: add acl auth support for sentinels
2021-09-22 14:02:54 +03:00
Алексей Романовский f36093a0be Add support for BLMove command 2021-09-20 16:37:40 -04:00
Justin Sievenpiper f74ce7de90
chore: swap to acl auth at the test-level 2021-09-18 22:36:40 -07:00
Vladimir Mihailenco c575887613
Merge pull request #1895 from go-redis/fix/conv-commits
chore: use conventional commits and auto-generate changelog
2021-09-18 10:01:16 +03:00
Justin Sievenpiper f66582f44f
feat: add acl auth support for sentinels 2021-09-17 23:39:26 -07:00
Vladimir Mihailenco 30a3028411 chore: use conventional commits and auto-generate changelog 2021-09-17 14:26:29 +03:00
Vladimir Mihailenco 7c92957d71 chore: gofmt 2021-09-17 14:22:23 +03:00
Vladimir Mihailenco aac0ea4447
Merge pull request #1891 from gozeloglu/rmv-empty-fnc
empty hooks.withContext removed
2021-09-17 14:21:40 +03:00
Gökhan Özeloğlu 028aeaad73 empty hooks.withContext removed 2021-09-16 09:07:49 +03:00
Vladimir Mihailenco 997118894a
Merge pull request #1884 from dmke/feat/parseurl
Allow query parameters for ParseURL
2021-09-15 09:08:59 +03:00
Vladimir Mihailenco 7ecd5cee5b chore: fix discussions link 2021-09-15 08:58:50 +03:00
Vladimir Mihailenco 0af87003d0 chore: add links to readme 2021-09-15 08:58:09 +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 0982b38527
Merge pull request #1882 from go-redis/chore/otel-example
chore: cleanup OpenTelemetry example
2021-09-10 08:45:29 +03:00
Vladimir Mihailenco 9b6ee9c3cc chore: gofmt all code 2021-09-08 16:52:29 +03:00
Vladimir Mihailenco 11c4d6f556 chore: cleanup OpenTelemetry example 2021-09-08 15:54:10 +03:00