Fake implementation of redis API for testing purposes