Exemple #1
0
        public void TestScripsLoaded()
        {
            var script = RedisScriptLoader.Load(RedisScript.JoinedParticipantsRepository_RemoveParticipant);

            Assert.NotNull(script);
        }
Exemple #2
0
        public async ValueTask <RedisResult> ExecuteScriptAsync(RedisScript script, params string[] parameters)
        {
            var scriptContent = RedisScriptLoader.Load(script);

            return(await _database.ScriptEvaluateAsync(scriptContent, parameters.Select(x => (RedisKey)x).ToArray()));
        }