Skip to content

Instantly share code, notes, and snippets.

@mjrusso
Created March 23, 2010 13:46
Show Gist options
  • Save mjrusso/341182 to your computer and use it in GitHub Desktop.
Save mjrusso/341182 to your computer and use it in GitHub Desktop.
# 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