Rediska

Follow me on twitter…

Monitor

Realtime operaion monitoring you redis servers:

<?php

// Initialize Rediska
$rediska = new Rediska();

// Get monitor with 2 minutes timeout
$monitor = $rediska->monitor(60 * 2);

// Get monitor on specified server
$monitor = $rediska->on('server1')->monitor();

// Get commands
foreach($monitor as $timestamp => $command) {
    print "$timestamp => $command";
}

?>

Comments

Fork me on GitHub