@@ -425,7 +425,7 @@ These new operations are available as a 1:1 mapping with redis-server on `IRedis
425425public interface IRedisNativeClient
426426{
427427 ...
428- byte [][] ZRangeByLex (string setId , string min , string max , int ? skip = null , int ? take = null );
428+ byte [][] ZRangeByLex (string setId , string min , string max , int ? skip , int ? take );
429429 long ZLexCount (string setId , string min , string max );
430430 long ZRemRangeByLex (string setId , string min , string max );
431431}
@@ -592,7 +592,8 @@ r = redis.ExecCachedLua(FastScanScript, sha1 =>
592592// Deletes all existing compiled LUA scripts
593593redis .ScriptFlush ();
594594
595- // #3: Executes using cached SHA1 hash, gets NOSCRIPT Error, re-creates and re-executes with SHA1 hash
595+ // #3: Executes using cached SHA1 hash, gets NOSCRIPT Error,
596+ // re-creates then re-executes the LUA script using its SHA1 hash
596597r = redis .ExecCachedLua (FastScanScript , sha1 =>
597598 redis .ExecLuaSha (sha1 , " key:*" , " 10" ));
598599```
@@ -669,7 +670,8 @@ var alphabet = 26.Times(c => ((char)('A' + c)).ToString());
669670alphabet .ForEach (x => Redis .AddItemToSortedSet (" zalphabet" , x , i ++ ));
670671
671672// Remove the letters with the highest rank from the sorted set 'zalphabet'
672- List < string > letters = Redis .ExecLuaAsList (luaBody , keys : new [] { " zalphabet" }, args : new [] { " 3" });
673+ List < string > letters = Redis .ExecLuaAsList (luaBody ,
674+ keys : new [] { " zalphabet" }, args : new [] { " 3" });
673675
674676letters .PrintDump (); // [X, Y, Z]
675677```
@@ -686,7 +688,8 @@ int intVal = Redis.ExecLuaAsInt("return ARGV[1] + ARGV[2]", "10", "20"); //30
686688Returning an string:
687689
688690``` csharp
689- var strVal = Redis .ExecLuaAsString (@" return 'Hello, ' .. ARGV[1] .. '!'" , " Redis Lua" ); // Hello, Redis Lua!
691+ // Hello, Redis Lua!
692+ var strVal = Redis .ExecLuaAsString (@" return 'Hello, ' .. ARGV[1] .. '!'" , " Redis Lua" );
690693```
691694
692695Returning a List of strings:
0 commit comments