Skip to content

Commit

Permalink
refactor: remove unused Remove method from redis
Browse files Browse the repository at this point in the history
  • Loading branch information
m4tu4g committed Sep 29, 2024
1 parent ff5f8a8 commit 848167b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,3 @@ func (r *redis) Set(key string, value interface{}, expiryTime time.Duration) err

return nil
}

func (r *redis) Remove(keys ...string) error {
ctx, cancel := context.WithTimeout(context.Background(), ContextTimeout*time.Second)
defer cancel()

err := r.cmd.Del(ctx, keys...).Err()
if err != nil {
return err
}

return nil
}

0 comments on commit 848167b

Please sign in to comment.