Created
November 13, 2010 22:10
-
-
Save stevencorona/675695 to your computer and use it in GitHub Desktop.
Example of Redis List API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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