Example #1
0
 /// <summary>
 /// <para>Evaluates this LoadedLuaScript against the given database, extracting parameters for the passed in object if any.</para>
 /// <para>
 /// This method sends the SHA1 hash of the ExecutableScript instead of the script itself.
 /// If the script has not been loaded into the passed Redis instance, it will fail.
 /// </para>
 /// </summary>
 /// <param name="db">The redis database to evaluate against.</param>
 /// <param name="ps">The parameter object to use.</param>
 /// <param name="withKeyPrefix">The key prefix to use, if any.</param>
 /// <param name="flags">The command flags to use.</param>
 public RedisResult Evaluate(IDatabase db, object ps = null, RedisKey?withKeyPrefix = null, CommandFlags flags = CommandFlags.None)
 {
     Original.ExtractParameters(ps, withKeyPrefix, out RedisKey[] keys, out RedisValue[] args);