guilleiguaran/fakeredis — pull request #40 by caius (2012-09-18 16:45:37+00:00)
Title: `get` needs to be type checked as well

Patch to check data type in `get` accessing keys - it should raise an error if you call get on a key containing a set for instance. Previous behaviour was to return the ruby `Set` instance.

Also raises a `Redis::CommandError` for wrong key value types, to match the redis-rb gem's behaviour.