1
2
3
4
5
6
7
8
9
10
11
        public static RedisConnection GetConnectionOld(bool waitForOpen = false)
        {
            var conn = new RedisConnection("redis server ip", 6379, syncTimeout: 500, ioTimeout: -1, password: "the pass word");

            conn.Error += (s, args) =>
            {
            };
            var openAsync = conn.Open();
            if (waitForOpen) conn.Wait(openAsync);
            return conn;
        }