// Exists returns if key exists in cache
Exists returns if key exists in cache
// Exists returns if key exists in cache
func (c *Cache) Exists(key string) (bool, error) {
	conn := c.Pool.Get()
	defer conn.Close()
	ok, err := redis.Bool(conn.Do("EXISTS", key))
	if err != nil {
		return ok, fmt.Errorf("dscache.Cache.Exists: error checking if key %s exists: %v", key, err)
	}
	return ok, err
}
func ( c * Cache ) Exists ( key string ) ( bool , error ) { conn := c . Pool . Get ( ) defer conn . Close ( ) ok , err := redis . Bool ( conn . Do ( " " , key ) ) if err != nil { return ok , fmt . Errorf ( " " , key , err ) } return ok , err }
Exists returns if key exists in cache
Exists returns if key exists in cache