/** * @param MemcachedBagOStuff $memc * @param array $keys List of acquired keys */ protected function releaseMutexes(MemcachedBagOStuff $memc, array $keys) { foreach ($keys as $key) { $memc->delete("{$key}:mutex"); } }
public function delete($key) { $this->debugLog("delete({$key})"); $result = parent::delete($key); if ($result === false && $this->client->getResultCode() === Memcached::RES_NOTFOUND) { // "Not found" is counted as success in our interface return true; } else { return $this->checkResult($key, $result); } }