You are here

public function RestfulStaticCacheController::get in RESTful 7

Gets the static cache.

Parameters

string $cid: The cache key to use.

mixed $default: The default value in case there is no static cache.

Return value

mixed The cached value.

Overrides RestfulStaticCacheControllerInterface::get

File

includes/RestfulStaticCacheController.php, line 34
Contains RestfulStaticCacheController

Class

RestfulStaticCacheController
@file Contains RestfulStaticCacheController

Code

public function get($cid, $default = NULL) {
  $this
    ->registerCid($cid);
  return drupal_static($this->prefix . $cid, $default);
}