Integration Redis and Entity structure