// Ping checks if a connection can be made
Ping checks if a connection can be made
// Ping checks if a connection can be made
func (c *Cache) Ping() error {
	conn := c.Pool.Get()
	defer conn.Close()
	_, err := redis.String(conn.Do("PING"))
	if err != nil {
		return fmt.Errorf("dscache.Cache.Ping: cannot 'PING' db: %v", err)
	}
	return nil
}
func ( c * Cache ) Ping ( ) error { conn := c . Pool . Get ( ) defer conn . Close ( ) _ , err := redis . String ( conn . Do ( " " ) ) if err != nil { return fmt . Errorf ( " " , err ) } return nil }
Ping checks if a connection can be made
Ping checks if a connection can be made