public function CacheWincache::Get in Drupal driver for SQL Server and SQL Azure 8.2
Get a cache item.
Parameters
mixed $cid:
Overrides CacheInterface::Get
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Component/ CacheWincache.php, line 56  
Class
- CacheWincache
 - Wincache implementation for the in-memory fast cache. Use this for very frequently used cache items.
 
Namespace
Drupal\Driver\Database\sqlsrv\ComponentCode
public function Get($cid) {
  if (isset($this->data[$cid])) {
    return $this->data[$cid];
  }
  $success = false;
  $result = wincache_ucache_get($this->prefix . ':' . $cid, $success);
  if (!$success) {
    return false;
  }
  if (isset($result->serialized) && $result->serialized) {
    $result->data = $this->serializer
      ->unserialize($result->data);
  }
  $this->data[$cid] = $result;
  return $result;
}