Beispiel #1
0
        public static async Task Redis()
        {
            ServiceStack.Redis.IRedisClient client = null;

            client.SetValue("key", "value"); // ok

            var s = client.LoadLuaScript("script");

            client.ExecLua("script", new[] { "" }, new[] { "" });
            client.ExecLuaSha("SHA", new[] { "" }, new[] { "" }); // ok
            client.Custom("command", "arg");                      // false negative, params sinks doesn't work

            ServiceStack.Redis.IRedisClientAsync asyncClient = null;
            s = await asyncClient.LoadLuaScriptAsync("script");

            asyncClient.ExecLuaAsync("script", new[] { "" }, new[] { "" });
        }