// ReleaseLock method are releases prevously acquired lock by its key.
//    - correlationId     (optional) transaction id to trace execution through call chain.
//    - key               a unique lock key to release.
//  Returns error or nil for success.
ReleaseLock method are releases prevously acquired lock by its key.
- correlationId     (optional) transaction id to trace execution through call chain.
- key               a unique lock key to release.
Returns error or nil for success.
// ReleaseLock method are releases prevously acquired lock by its key . // - correlationId ( optional ) transaction id to trace execution through call chain . // - key a unique lock key to release . // Returns error or nil for success .
func (c *MemcachedLock) ReleaseLock(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 * MemcachedLock ) ReleaseLock ( 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 }
ReleaseLock method are releases prevously acquired lock by its key.
ReleaseLock method are releases prevously acquired lock by its key .