$item = $item->next; } for ($i = 0; $i < 10; $i++) { $val = sprintf("%012d", $i); $ret = $m->delete($key, $val, strlen($val)); if ($ret != MEMLINK_OK) { echo "delete error! {$ret} \n"; exit(0); } } $count = $m->count($key, ''); if ($count) { echo "count: {$count->visible_count} {$count->tagdel_count} \n"; } $count = new MemLinkCount(); $ret = $m->count2($key, '', $count); if ($ret != MEMLINK_OK) { echo "count2 error: {$ret}\n"; exit(-1); } echo "count: {$count->visible_count} {$count->tagdel_count} \n"; /* $info = new MemLinkStatSys(); $ret = $m->stat_sys2($info); if ($ret == MEMLINK_OK) { echo "keys:$info->keys\nvalues:$info->values\n"; }else{ echo "stat sys error! $ret\n"; }*/ $info = $m->stat_sys(); if ($info != NULL) {