// Get an item from cache
Get an item from cache
// Get an item from cache
func (c *Cache) Get(key string) ([]byte, error) {
	conn := c.Pool.Get()
	defer conn.Close()
	data, err := redis.Bytes(conn.Do("GET", key))
	if err != nil {
		return nil, err
	}
	return data, nil
}
func ( c * Cache ) Get ( key string ) ( [ ] byte , error ) { conn := c . Pool . Get ( ) defer conn . Close ( ) data , err := redis . Bytes ( conn . Do ( " " , key ) ) if err != nil { return nil , err } return data , nil }
Get an item from cache
Get an item from cache