mirror of
https://github.com/tiennm99/keepalive.git
synced 2026-10-14 02:16:10 +00:00
refactor(adapter)!: drop the valkey adapter in favor of redis
Valkey speaks the Redis protocol, so the redis adapter (go-redis) already serves it. Dropping valkey-go removes a dependency and shrinks the stripped binary by about 9 MB. The redis adapter now also closes a client that failed to connect only once. BREAKING CHANGE: `adapter: valkey` is no longer accepted. Use `adapter: redis` with a redis:// or rediss:// URL instead of valkey:// or valkeys://. The namespace option now applies to these services.
This commit is contained in:
1 parent
77b9a9673b
commit
cbcee9ccd8
6 files changed
+15
-70
No files matched your search
+6
-2
@@ -9,12 +9,16 @@ services:
|
||||
url: redis://default@redis-a.example.com:6379
|
||||
namespace: keepalive
|
||||
|
||||
- adapter: valkey
|
||||
# Valkey, Dragonfly, KeyDB and other Redis-compatible stores use the redis
|
||||
# adapter with a redis:// or rediss:// (TLS) URL.
|
||||
- name: valkey-a
|
||||
adapter: redis
|
||||
# Example: this service overrides root interval and counter_key.
|
||||
interval: 30s
|
||||
counter_key: valkey-counter
|
||||
config:
|
||||
url: valkey://default@valkey-a.example.com:6379
|
||||
url: rediss://default@valkey-a.example.com:6379
|
||||
namespace: keepalive
|
||||
|
||||
- adapter: postgresql
|
||||
config:
|
||||
|
||||
Reference in new issue
Block a user