changing to a more recent version of redis-mock and creating functions to serialize/unserialize a resource