You are here

function radioactivity_group_memcache_entries in Radioactivity 6

2 calls to radioactivity_group_memcache_entries()
radioactivity_debug_memcache_form in plugins/radioactivity_debug.module
radioactivity_process_memcached_entries in ./radioactivity.module

File

./radioactivity.module, line 209

Code

function radioactivity_group_memcache_entries($start_entry_id, $stop_entry_id) {
  $combined = array();
  while ($start_entry_id < $stop_entry_id) {
    $entry = dmemcache_get('entry-' . $start_entry_id, 'radioactivity');
    ++$start_entry_id;
    if (!$entry) {
      continue;
    }

    // probably expired, try next
    switch ($entry['type']) {
      case 'add-energy':
        ++$combined[$entry['oid']][$entry['oclass']][$entry['source']];
        break;
      default:
    }
  }
  return $combined;
}