Skip to content

Instantly share code, notes, and snippets.

@stevencorona
Created November 13, 2010 22:10
Show Gist options
  • Save stevencorona/675695 to your computer and use it in GitHub Desktop.
Save stevencorona/675695 to your computer and use it in GitHub Desktop.
Example of Redis List API
$redis = new Predis\Client('redis://10.0.0.1:6379/');
$redis->lpush("key", "value1");
$redis->lpush("key", "value2");
echo $redis->llen("key") . " items in the list";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment