Rediska

Follow me on twitter…

Redis version

Rediska supports following Redis server versions. Depending on version some commands may not be available, or can behave differently:

<?php

require_once 'Rediska.php';
$options = array(
    'redisVersion' => '1.3.10'
);
$rediska = new Rediska($options);
$rediska->addToSortedSet('test', 123, 1);
$rediska->addToSortedSet('test', 456, 2);
$rediska->addToSortedSet('test', 789, 3);
// Command comes from 1.3.4 unstable version
echo $rediska->getRankFromSortedSet('test', 456); #=> 1

?>

By default latest stable Redis version is used.

Comments

Fork me on GitHub