// The same as CachingClient.Cas(), but sets interval for periodic item
// revalidation on the server.
//
// This means that outdated, locally cached version of the item may be returned
// during validateTtl interval. Use CachingClient.Cas() if you don't unserstand
// how this works.
//
// Setting validateTtl to 0 leads to item re-validation on every get() request.
// This is equivalent ot CachingClient.Cas() call. Even in this scenario network
// bandwidth between the client and memcache servers is saved if the average
// item size exceeds ~100 bytes.
The same as CachingClient.Cas(), but sets interval for periodic item
revalidation on the server.

This means that outdated, locally cached version of the item may be returned
during validateTtl interval. Use CachingClient.Cas() if you don't unserstand
how this works.

Setting validateTtl to 0 leads to item re-validation on every get() request.
This is equivalent ot CachingClient.Cas() call. Even in this scenario network
bandwidth between the client and memcache servers is saved if the average
item size exceeds ~100 bytes.
// The same as CachingClient . Cas () but sets interval for periodic item // revalidation on the server . // // This means that outdated locally cached version of the item may be returned // during validateTtl interval . Use CachingClient . Cas () if you don ' t unserstand // how this works . // // Setting validateTtl to 0 leads to item re - validation on every get () request . // This is equivalent ot CachingClient . Cas () call . Even in this scenario network // bandwidth between the client and memcache servers is saved if the average // item size exceeds ~100 bytes .
func (c *CachingClient) CasWithValidateTtl(item *Item, validateTtl time.Duration) error {
	c.Cache.Delete(item.Key)
	item.Value = prependValidateTtl(item.Value, validateTtl)
	return c.Client.Cas(item)
}
func ( c * CachingClient ) CasWithValidateTtl ( item * Item , validateTtl time . Duration ) error { c . Cache . Delete ( item . Key ) item . Value = prependValidateTtl ( item . Value , validateTtl ) return c . Client . Cas ( item ) }
The same as CachingClient.Cas(), but sets interval for periodic item
revalidation on the server.
The same as CachingClient . Cas () but sets interval for periodic item revalidation on the server .