コード例 #1
0
ファイル: Cache.php プロジェクト: mcustiel/php-simple-cache
 /**
  * {@inheritDoc}
  * @see \Mcustiel\SimpleCache\Interfaces\CacheInterface::delete()
  */
 public function delete(KeyInterface $key)
 {
     $this->connection->delete($key->getKeyName());
 }
コード例 #2
0
ファイル: Cache.php プロジェクト: mcustiel/php-simple-cache
 /**
  * @param \Mcustiel\SimpleCache\Types\Key $key
  * @return boolean
  */
 private function exists(KeyInterface $key)
 {
     return $this->fileService->exists($key->getKeyName());
 }