// Get returns the value for the given key in cache, panic when an error occurs.
Get returns the value for the given key in cache, panic when an error occurs.
// Get returns the value for the given key in cache panic when an error occurs .
func (r *RedisCache) Get(ctx context.Context, key string) (string, bool) {
	val, err := r.client.Get(ctx, r.realKey(key)).Result()
	if err == redis.Nil {
		return "", false
	}
	if err != nil {
		panic(fmt.Errorf("redis get error: %w", err))
	}
	return val, true
}
func ( r * RedisCache ) Get ( ctx context . Context , key string ) ( string , bool ) { val , err := r . client . Get ( ctx , r . realKey ( key ) ) . Result ( ) if err == redis . Nil { return " " , false } if err != nil { panic ( fmt . Errorf ( " " , err ) ) } return val , true }
Get returns the value for the given key in cache, panic when an error occurs.
Get returns the value for the given key in cache panic when an error occurs .