You are here

public function CacheApcu::__construct in Drupal driver for SQL Server and SQL Azure 8.2

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Component/CacheApcu.php, line 28

Class

CacheApcu
Apcu implementation for the in-memory fast cache. Use this for very frequently used cache items.

Namespace

Drupal\Driver\Database\sqlsrv\Component

Code

public function __construct($prefix) {
  $this->prefix = $prefix;

  // Try to use a serializer...
  if (function_exists('igbinary_serialize')) {
    $this->serializer = new SerializerIgbinary();
  }
  else {
    $this->serializer = new SerializerPhp();
  }
}