@@ -425,7 +425,7 @@ These new operations are available as a 1:1 mapping with redis-server on `IRedis
425
425
public interface IRedisNativeClient
426
426
{
427
427
...
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 );
429
429
long ZLexCount (string setId , string min , string max );
430
430
long ZRemRangeByLex (string setId , string min , string max );
431
431
}
@@ -592,7 +592,8 @@ r = redis.ExecCachedLua(FastScanScript, sha1 =>
592
592
// Deletes all existing compiled LUA scripts
593
593
redis .ScriptFlush ();
594
594
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
596
597
r = redis .ExecCachedLua (FastScanScript , sha1 =>
597
598
redis .ExecLuaSha (sha1 , " key:*" , " 10" ));
598
599
```
@@ -669,7 +670,8 @@ var alphabet = 26.Times(c => ((char)('A' + c)).ToString());
669
670
alphabet .ForEach (x => Redis .AddItemToSortedSet (" zalphabet" , x , i ++ ));
670
671
671
672
// 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" });
673
675
674
676
letters .PrintDump (); // [X, Y, Z]
675
677
```
@@ -686,7 +688,8 @@ int intVal = Redis.ExecLuaAsInt("return ARGV[1] + ARGV[2]", "10", "20"); //30
686
688
Returning an string:
687
689
688
690
``` 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" );
690
693
```
691
694
692
695
Returning a List of strings:
0 commit comments