You are here

protected function SQLite3Cache::doDelete in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/lib/Doctrine/Common/Cache/SQLite3Cache.php \Doctrine\Common\Cache\SQLite3Cache::doDelete()

Deletes a cache entry.

Parameters

string $id The cache id.:

Return value

boolean TRUE if the cache entry was successfully deleted, FALSE otherwise.

Overrides CacheProvider::doDelete

1 call to SQLite3Cache::doDelete()
SQLite3Cache::findById in vendor/doctrine/cache/lib/Doctrine/Common/Cache/SQLite3Cache.php
Find a single row by ID.

File

vendor/doctrine/cache/lib/Doctrine/Common/Cache/SQLite3Cache.php, line 125

Class

SQLite3Cache
SQLite3 cache provider.

Namespace

Doctrine\Common\Cache

Code

protected function doDelete($id) {
  list($idField) = $this
    ->getFields();
  $statement = $this->sqlite
    ->prepare(sprintf('DELETE FROM %s WHERE %s = :id', $this->table, $idField));
  $statement
    ->bindValue(':id', $id);
  return $statement
    ->execute() instanceof SQLite3Result;
}