Mercurial > public > queues
changeset 22:db368b4d5925
Redis backend: stop using reprecated pop/push and use lpop/lpush which should work in 0.900+.
author | mcroydon |
---|---|
date | Thu, 06 May 2010 17:24:41 +0000 |
parents | 331d96e6a133 |
children | e239881b4de5 |
files | queues/backends/redisd.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/queues/backends/redisd.py Fri Apr 30 15:58:07 2010 +0000 +++ b/queues/backends/redisd.py Thu May 06 17:24:41 2010 +0000 @@ -56,13 +56,13 @@ def read(self): try: - return self._connection.pop(self.name) + return self._connection.lpop(self.name) except redis.RedisError, e: raise QueueException, "%s" % e def write(self, value): try: - resp = self._connection.push(self.name, value) + resp = self._connection.lpush(self.name, value) if resp == 'OK': return True else: