~bigbes/core-go

ref: 80be9ad7d6aaf1763b2b3f2c1c31ad9cb3c56271 core-go/redis/middleware.go -rw-r--r-- 800 bytes
465a6f71 — Drew DeVault 1 year, 6 months ago
all: pass errors to panic, not strings

GraphQL's recovery middleware can't handle strings so it just logs a
very not useful <nil>
e1b63989 — Conrad Hoffmann 1 year, 9 months ago
redis: use UniveralClient, support sentinel mode

This commit switches the redis client to using a UniversalClient [1],
which can operate in standard, cluster, or failover (sentinel) mode.

It also implements basic support for having (multiple)
`redis+sentinel://` URLs as connection URL in the config (e.g. for
`redis-host`).

This is the Go equivalent of the proposed Python patch [2]. It supports
the same examples given there.

[1] https://pkg.go.dev/github.com/go-redis/redis/v8#UniversalClient
[2] https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/55521
083cb160 — Adnan Maolood 3 years ago
redis: Update style

To match the s3 middleware.
14f4b921 — Drew DeVault 5 years ago
Expand context for work queues
6a53435e — Drew DeVault 5 years ago
redis: import middleware from gql.sr.ht