You are here

public function SimplenewsSourceCacheStatic::set in Simplenews 7.2

Same name and namespace in other branches
  1. 7 includes/simplenews.source.inc \SimplenewsSourceCacheStatic::set()

Implements SimplenewsSourceNodeInterface::set().

Overrides SimplenewsSourceCacheInterface::set

File

includes/simplenews.source.inc, line 961
Contains SimplenewsSource interface and implementations.

Class

SimplenewsSourceCacheStatic
Abstract implementation of the source caching that does static caching.

Code

public function set($group, $key, $data) {
  if (!$this
    ->isCacheable($group, $key)) {
    return;
  }
  self::$cache[$this
    ->getCid()][$group][$key] = $data;
}