chg: feat: add retry and expiry

This commit is contained in:
2025-07-30 14:17:20 +00:00
parent 9bb98beb61
commit db40de9d86
3 changed files with 28 additions and 7 deletions

4
cache/redis.go vendored
View File

@@ -48,3 +48,7 @@ func (r *Redis) Set(ctx context.Context, key string, value []byte) error {
func (r *Redis) SetWithExpiration(ctx context.Context, key string, value []byte, expiration time.Duration) error {
return r.client.Set(ctx, key, value, expiration).Err()
}
func (r *Redis) Del(ctx context.Context, key string) error {
return r.client.Del(ctx, key).Err()
}