// Del deletes the given key, panic when an error occurs.
Del deletes the given key, panic when an error occurs.
// Del deletes the given key panic when an error occurs .
func (r *RedisCache) Del(ctx context.Context, key string) bool {
	val, err := r.client.Del(ctx, r.realKey(key)).Result()
	if err != nil {
		panic(fmt.Errorf("redis del error: %w", err))
	}
	return val > 0
}
func ( r * RedisCache ) Del ( ctx context . Context , key string ) bool { val , err := r . client . Del ( ctx , r . realKey ( key ) ) . Result ( ) if err != nil { panic ( fmt . Errorf ( " " , err ) ) } return val > 0 }
Del deletes the given key, panic when an error occurs.
Del deletes the given key panic when an error occurs .