implemented the RedisConnection class