Created
March 23, 2010 13:46
-
-
Save mjrusso/341182 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# pyres ResQ list_range | |
def list_range(self, key, start, count, decode=True): | |
items = self.redis.lrange(key, start,start+count-1) or [] | |
ret_list = [] | |
for i in items: | |
if decode: i = ResQ.decode(i) | |
ret_list.append(i) | |
return ret_list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment