Jiale Lin
07898eade0
fix: parse DB number from redis-sentinel URI path ( #669 )
...
Previously, parseRedisSentinelURI ignored the /dbnumber path segment,
making it impossible to connect to any DB other than 0 via sentinel URIs.
This adds DB extraction from the URI path, consistent with how
parseRedisURI already handles it for redis:// and rediss:// schemes.
Closes #669
2026-03-21 11:33:56 -07:00
Mohammed Sohail
604175e6ca
ci: format code with golangci-lint
2025-11-04 19:06:18 +03:00
Emanuel Bennici
0275df8df4
Update redis/go-redis to v9
...
Version v9 implements the support for Redis v7 and has some
other improvements.
2023-04-17 22:30:33 -07:00
Zhidong Chen
c08f142b56
fix redis sentinel url parse
2022-09-25 15:04:04 -07:00
Ken Hibino
e939b5d166
Rename asynqtest package to testutil
2022-04-11 16:55:43 -07:00
Erwan Leboucher
04d7c8c38c
Add rediss url parsing support
2022-02-24 08:30:55 -08:00
Jason White
b3ef9e91a9
Upgrade go-redis/redis to version 8
2021-09-02 05:56:02 -07:00
Ken Hibino
476812475e
Change payload to byte slice
2021-06-29 16:34:21 -07:00
Ken Hibino
6b96459881
Add test flags to run tests using redis cluster
2020-09-12 12:59:03 -07:00
Ken Hibino
fb38086590
Clean up log messages
...
Moved development purpose log messages to DEBUG level.
2020-05-16 08:00:35 -07:00
Ken Hibino
24ee4b9693
Define test flags for package testing
...
Added test flags for
- redis address (defaults to "localhost:6379")
- redis db number (defaults to 14)
- log level (defaults to FATAL)
2020-05-16 08:00:35 -07:00
Ken Hibino
b63476ddc8
Simplify Logger interface
2020-05-16 08:00:35 -07:00
Ken Hibino
eb8ced6bdd
Add ParseRedisURI helper function
2020-04-25 13:06:20 -07:00
Ken Hibino
d664d68fa4
Extract out log package
2020-03-09 07:17:52 -07:00
Ken Hibino
207a6d2d1a
Fix benchmark tests
2020-01-18 15:07:15 -08:00
Ken Hibino
c62833540c
Add license comment to all src files
2020-01-02 18:13:16 -08:00
Ken Hibino
09ee8df5a0
Add end-to-end benchmark tests
2019-12-31 17:04:28 -08:00
Ken Hibino
ae0c2f9ca5
Use asynqtest helpers in asynq package tests
2019-12-29 10:05:02 -08:00
Ken Hibino
3fd248615b
Create base internal package
2019-12-22 07:40:25 -08:00
Ken Hibino
4229073a24
Allow user to define a max retry count for a task
2019-12-21 09:47:45 -08:00
Ken Hibino
edcd70b221
Replace google/uuid package with rs/xid for more compact id
2019-12-11 07:41:38 -08:00
Ken Hibino
437fb03bb3
Unexport redis key name constants from rdb package
2019-12-04 17:23:11 -08:00
Ken Hibino
998e761660
Use different redis db for each package tests
2019-12-04 07:39:16 -08:00
Ken Hibino
28bfb6d83a
Rename to CheckAndEnqueue
2019-12-04 07:28:57 -08:00
Ken Hibino
d4e442d04f
Extract rdb to internal package
2019-12-03 22:13:48 -08:00
Ken Hibino
57838600ef
Rename to RedisConfig
2019-12-03 19:43:01 -08:00
Ken Hibino
8eb6f04ef4
Move test helpers to asynq_test.go
2019-11-29 20:53:29 -08:00