bbangert / retools

Redis Tools
MIT License
138 stars 41 forks source link

lock wait changes #5

Closed dholth closed 12 years ago

dholth commented 12 years ago

cache.py is the important change. Instead of bypassing Lock, we always try to get the lock. No timeout if we have an old result available.

Not sure if integer redis expire times are important, but I was getting some 'ResultError not an integer/number' errors from redis.

bbangert commented 12 years ago

Can you rebase this so I can easily apply it?

dholth commented 12 years ago

other one is more rebased but has no int() cast in lock.py