redis/internal
Kailash Nadh 6f96bebac7 Add redis.Scan() to scan results from redis maps into structs.
The package uses reflection to decode default types (int, string
etc.) from Redis map results (key-value pair sequences) into
struct fields where the fields are matched to Redis keys by tags.

Similar to how `encoding/json` allows custom decoders using
`UnmarshalJSON()`, the package supports decoding of arbitrary
types into struct fields by defining a `Decode(string) error`
function on types.

The field/type spec of every struct that's passed to Scan() is
cached in the package so that subsequent scans avoid iteration
and reflection of the struct's fields.
2021-01-28 18:04:38 +05:30
..
hashtag Reduce dependency chain 2020-09-17 14:32:08 +01:00
hscan Add redis.Scan() to scan results from redis maps into structs. 2021-01-28 18:04:38 +05:30
pool Fix Tx pipeline hook 2021-01-09 09:57:46 +02:00
proto Update golangci-lint to v1.32 2020-11-17 23:08:15 +09:00
rand Reduce dependency chain 2020-09-17 14:32:08 +01:00
util Use bufio.Writer 2018-08-17 14:14:02 +03:00
arg.go Remove arg hex encoding 2020-09-24 10:09:09 +03:00
instruments.go Update to otel v0.14 2020-11-21 09:56:52 +02:00
internal.go Guard against overflow in retry 2020-10-28 11:12:46 +02:00
internal_test.go Fix test 2020-07-28 16:26:03 +03:00
log.go Log with context to associate all log by traceID (#1413) 2020-07-18 09:04:36 +03:00
once.go Vendor syncutil.Once 2017-07-01 12:51:46 +03:00
safe.go Add OpenTelemetryHook 2020-06-09 17:17:41 +03:00
unsafe.go Add OpenTelemetryHook 2020-06-09 17:17:41 +03:00
util.go Merge pull request #1567 from go-redis/feature/otel-0.14 2020-11-21 10:12:54 +02:00