rewritten magic-method to improve compatibility with redis gem, added tests, and updated gemspec