$status = $db->increment($key, 'age', 20); if ($status != Aerospike::OK) { echo "\nMultiincrement failed at " . $i . "th record"; } } $db->close(); } else { echo "Aerospike DB connection is not established"; } }); $app->put('/touch', function () use($db) { if ($db->isConnected()) { $key = $db->initKey("test", "demo", "key_touch"); $record = array("name" => "John", "age" => 32); $status = $db->put($key, $record); $status = $db->touch($key, 1000, array(Aerospike::OPT_WRITE_TIMEOUT => 200)); if ($status != Aerospike::OK) { echo "Touch operation failed"; break; } else { echo "\nTouch operation successful"; } $db->remove($key); $db->close(); } else { echo "Aerospike DB connection is not established"; } }); $app->put('/multitouch', function () use($db) { if ($db->isConnected()) { for ($i = 0; $i < 100; $i++) {