protected function SQLite3Cache::doDelete in Plug 7
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 lib/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ SQLite3Cache.php  - Find a single row by ID.
 
File
- lib/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ SQLite3Cache.php, line 125  
Class
- SQLite3Cache
 - SQLite3 cache provider.
 
Namespace
Doctrine\Common\CacheCode
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;
}