$ret = $m->create_sortlist("dkey", 10, "1:1:1", MEMLINK_VALUE_OBJ); if ($ret != MEMLINK_OK) { echo "create sortlist error: {$ret}\n"; exit(-1); } $ret = $m->ping(); if ($ret != MEMLINK_OK) { echo "ping error: {$ret}\n"; exit(-1); } $ret = $m->dump(); if ($ret != MEMLINK_OK) { echo "dump error: {$ret}\n"; exit(-1); } $ret = $m->create_list($key, 12, "4:3:1"); if ($ret != MEMLINK_OK) { echo "create error: {$key}\n"; exit(-1); } for ($i = 0; $i < 100; $i++) { $val = sprintf("%012d", $i); $ret = $m->insert($key, $val, strlen($val), "8:1:1", 0); if ($ret != MEMLINK_OK) { echo "insert error! {$ret} {$key} {$val}\n"; exit(-1); } } $ret = $m->stat($key); if (is_null($ret)) { echo "stat error: {$key}\n";