Added a typecheck in redis backend creation