Пример #1
0
 /**
  * {@inheritDoc}
  *
  * @see \Mcustiel\SimpleCache\Interfaces\CacheInterface::delete()
  */
 public function delete(KeyInterface $key)
 {
     return apc_delete($key->__toString());
 }
Пример #2
0
 /**
  * {@inheritDoc}
  * @see \Mcustiel\SimpleCache\Interfaces\CacheInterface::delete()
  */
 public function delete(KeyInterface $key)
 {
     $this->connection->delete($key->getKeyName());
 }
Пример #3
0
 /**
  * @param \Mcustiel\SimpleCache\Types\Key $key
  * @return boolean
  */
 private function exists(KeyInterface $key)
 {
     return $this->fileService->exists($key->getKeyName());
 }