moved RedisRepository into lib folder