You are here

public function FastCache::__construct in Drupal driver for SQL Server and SQL Azure 8

Build an instance of FastCache.

Parameters

string $prefix: Unique site prefix.

File

drivers/lib/Drupal/Driver/Database/sqlsrv/FastCache.php, line 39
fastcache class.

Class

FastCache
Static caching layer.

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function __construct($prefix) {
  if (!is_string($prefix)) {
    throw new \Exception("FastCache prefix must be a string.");
  }
  $this->prefix = $prefix;
}