RedisClient: refactoring, optimization.