Created
November 15, 2010 23:51
-
-
Save stevencorona/701199 to your computer and use it in GitHub Desktop.
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
$counter = new RedisString("key"); | |
$counter(-1); // decr 1 | |
$counter(+1); // incr 1 | |
$counter(+2); // incr 2 | |
$counter = new RedisString("key"); | |
$counter->decr(); | |
$counter->incr(); | |
$counter->incr(2); | |
$counter = new RedisString("key"); | |
$counter->v--; | |
$counter->v++; | |
$counter->v += 2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment