You are here

function messaging_static_cache_set in Messaging 6.4

Same name and namespace in other branches
  1. 7 messaging.module \messaging_static_cache_set()

Set data on static cache, checking whether the cache is under limits.

2 calls to messaging_static_cache_set()
Messaging_Cached_Object::object_cache_set in includes/messaging_object.class.inc
Set value into static cache
Messaging_Store::cache_set in includes/messaging_store.class.inc
Save message to static cache

File

./messaging.module, line 1114

Code

function messaging_static_cache_set($cache_name, $key, $value) {
  $cache =& messaging_static($cache_name);
  if ($cache && MESSAGING_CACHE_LIMIT && count($cache) > MESSAGING_CACHE_LIMIT) {
    $cache = array();
  }
  $cache[$key] = $value;
}