Delete removes an entry from the cache based on the provided key. Parameters: - ctx: The context for the operation. - key: The cache key to delete. Returns an error if the deletion fails.
(ctx context.Context, key string)
| 151 | // - key: The cache key to delete. |
| 152 | // Returns an error if the deletion fails. |
| 153 | func (r *RedisCache) Delete(ctx context.Context, key string) error { |
| 154 | return r.cache.Delete(ctx, key) |
| 155 | } |