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