added HashCache interface and implemented with the redis cache