func (c *Client) Hit(key string, ttlsec int32) (count uint64, remttl int32, err error) {
	item, err := c.mc.Get(key)
	if err != nil {
		if err == memcache.ErrCacheMiss {
			return c.create(key, ttlsec)
		}
		return 0, 0, err
	}
	n, err := c.mc.Increment(key, 1)
	if err != nil {
		if err == memcache.ErrCacheMiss {
			return c.create(key, ttlsec)
		}
		return 0, 0, err
	}
	rem := int32(item.Flags) - int32(time.Now().Unix())
	if rem < 0 {
		rem = 0
	}
	return n, rem, nil
}
// Hit implements the httprl.Backend interface.
Hit implements the httprl.Backend interface.
// Hit implements the httprl . Backend interface .
func (c *Client) Hit(key string, ttlsec int32) (count uint64, remttl int32, err error) {
	item, err := c.mc.Get(key)
	if err != nil {
		if err == memcache.ErrCacheMiss {
			return c.create(key, ttlsec)
		}
		return 0, 0, err
	}
	n, err := c.mc.Increment(key, 1)
	if err != nil {
		if err == memcache.ErrCacheMiss {
			return c.create(key, ttlsec)
		}
		return 0, 0, err
	}
	rem := int32(item.Flags) - int32(time.Now().Unix())
	if rem < 0 {
		rem = 0
	}
	return n, rem, nil
}
func ( c * Client ) Hit ( key string , ttlsec int32 ) ( count uint64 , remttl int32 , err error ) { item , err := c . mc . Get ( key ) if err != nil { if err == memcache . ErrCacheMiss { return c . create ( key , ttlsec ) } return 0 , 0 , err } n , err := c . mc . Increment ( key , 1 ) if err != nil { if err == memcache . ErrCacheMiss { return c . create ( key , ttlsec ) } return 0 , 0 , err } rem := int32 ( item . Flags ) - int32 ( time . Now ( ) . Unix ( ) ) if rem < 0 { rem = 0 } return n , rem , nil }
Hit implements the httprl.Backend interface.
Hit implements the httprl . Backend interface .