/** * {@inheritdoc} */ public function delete($key) { if (!is_string($key)) { throw new InvalidArgumentException('Invalid key: ' . serialize($key) . '. Must be string.'); } return $this->store->delete($key); }
/** * {@inheritdoc} */ public function deleteItem($key) { $this->assertValidKey($key); $this->store->delete($key); unset($this->deferred[$key]); // as long as the item is gone from the cache (even if it never existed // and delete failed because of that), we should return `true` return true; }
/** * {@inheritdoc} */ public function delete($key) { return $this->cache->delete($key); }
/** * {@inheritdoc} */ public function deleteItem($key) { $this->assertValidKey($key); return $this->store->delete($key); }