You are here

public function fastcacheitem::data_set in Drupal driver for SQL Server and SQL Azure 7.2

Same name and namespace in other branches
  1. 7.3 sqlsrv/fastcacheitem.inc \fastcacheitem::data_set()

Set a value in cache.

Parameters

mixed $key:

mixed $value:

File

sqlsrv/fastcacheitem.inc, line 51
fastcacheitem Class.

Class

fastcacheitem
@file fastcacheitem Class.

Code

public function data_set($key, $value) {
  $container = new stdClass();
  $container->data = $value;
  $this->data[$key] = $container;
}