public function SimplenewsSourceCacheStatic::set in Simplenews 7
Same name and namespace in other branches
- 7.2 includes/simplenews.source.inc \SimplenewsSourceCacheStatic::set()
Implements SimplenewsSourceNodeInterface::set().
Overrides SimplenewsSourceCacheInterface::set
File
- includes/simplenews.source.inc, line 898 
- 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;
}