Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 338ced2

Browse files
committed
minimize line wrapping
1 parent 8bf2ea8 commit 338ced2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ These new operations are available as a 1:1 mapping with redis-server on `IRedis
425425
public 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
593593
redis.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
596597
r = redis.ExecCachedLua(FastScanScript, sha1 =>
597598
redis.ExecLuaSha(sha1, "key:*", "10"));
598599
```
@@ -669,7 +670,8 @@ var alphabet = 26.Times(c => ((char)('A' + c)).ToString());
669670
alphabet.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

674676
letters.PrintDump(); //[X, Y, Z]
675677
```
@@ -686,7 +688,8 @@ int intVal = Redis.ExecLuaAsInt("return ARGV[1] + ARGV[2]", "10", "20"); //30
686688
Returning 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

692695
Returning a List of strings:

0 commit comments

Comments
 (0)