function radioactivity_group_memcache_entries in Radioactivity 6
2 calls to radioactivity_group_memcache_entries()
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;
}