From 48ce9614961fad6f466f537d082eaebb5a3e38e7 Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Mon, 27 Oct 2025 14:49:37 +0700 Subject: [PATCH] upd: redis cache: add GetClient --- cache/redis_cache.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cache/redis_cache.go b/cache/redis_cache.go index d72cfcb..e59c742 100644 --- a/cache/redis_cache.go +++ b/cache/redis_cache.go @@ -64,6 +64,10 @@ func NewRedisCache(cfg *RedisConfig) *RedisCache { return &RedisCache{client: client} } +func (r *RedisCache) GetClient() redis.UniversalClient { + return r.client +} + func (r *RedisCache) Set(key string, value interface{}, ttl time.Duration) error { // Marshal the value to JSON jsonData, err := json.Marshal(value)