ondrejbartas/redis-model-extension — pull request #16 by mrazicz (2012-09-06 08:17:30+00:00)
Title: Test if key exists while getting items removed.

This pull request is about deleting code which cause useless request to the redis. Command hgetall returns empty Hash if key doesn't exist (and because we always have something in Hash - at least id) so we can find out if key exists or not by call Hash.empty?. So I deleted test for exists everywhere where it was possible and made some necessary changes.
In old code also was a little bug, because test for exists and following get were not atomic.