// Remove method are removes a value from the cache by its key.
// Parameters:
//   - correlationId     (optional) transaction id to trace execution through call chain.
//   - key               a unique value key.
// Retruns: an error or nil for success
Remove method are removes a value from the cache by its key.
Parameters:
- correlationId     (optional) transaction id to trace execution through call chain.
- key               a unique value key.
Retruns: an error or nil for success
// Remove method are removes a value from the cache by its key . // Parameters : // - correlationId ( optional ) transaction id to trace execution through call chain . // - key a unique value key . // Retruns : an error or nil for success
func (c *MemcachedCache) Remove(correlationId string, key string) error {
	state, err := c.checkOpened(correlationId)
	if !state {
		return err
	}
	err = c.client.Delete(key)
	if err != nil && err == memcache.ErrCacheMiss {
		err = nil
	}
	return err
}
func ( c * MemcachedCache ) Remove ( correlationId string , key string ) error { state , err := c . checkOpened ( correlationId ) if ! state { return err } err = c . client . Delete ( key ) if err != nil && err == memcache . ErrCacheMiss { err = nil } return err }
Remove method are removes a value from the cache by its key.
Remove method are removes a value from the cache by its key .