You are here

private function FastCacheItem::startsWith in Drupal driver for SQL Server and SQL Azure 8

Aux starsWith string.

1 call to FastCacheItem::startsWith()
FastCacheItem::clear in drivers/lib/Drupal/Driver/Database/sqlsrv/FastCacheItem.php
Clear a cache item.

File

drivers/lib/Drupal/Driver/Database/sqlsrv/FastCacheItem.php, line 35
fastcacheitem Class.

Class

FastCacheItem

Namespace

Drupal\Driver\Database\sqlsrv

Code

private function startsWith($haystack, $needle) {
  return $needle === "" || strpos($haystack, $needle) === 0;
}