Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
c33f7283
Commit
c33f7283
authored
Jul 09, 2018
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up SortedSetRangeByValue calls and tests
parent
71418c9f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
4 deletions
+19
-4
DatabaseWrapperTests.cs
StackExchange.Redis.Tests/DatabaseWrapperTests.cs
+8
-1
WrapperBaseTests.cs
StackExchange.Redis.Tests/WrapperBaseTests.cs
+8
-1
DatabaseWrapper.cs
.../StackExchange/Redis/KeyspaceIsolation/DatabaseWrapper.cs
+2
-1
WrapperBase.cs
...edis/StackExchange/Redis/KeyspaceIsolation/WrapperBase.cs
+1
-1
No files found.
StackExchange.Redis.Tests/DatabaseWrapperTests.cs
View file @
c33f7283
...
...
@@ -725,7 +725,14 @@ public void SortedSetRangeByScoreWithScores()
public
void
SortedSetRangeByValue
()
{
wrapper
.
SortedSetRangeByValue
(
"key"
,
"min"
,
"max"
,
Exclude
.
Start
,
123
,
456
,
CommandFlags
.
HighPriority
);
mock
.
Verify
(
_
=>
_
.
SortedSetRangeByValue
(
"prefix:key"
,
"min"
,
"max"
,
Exclude
.
Start
,
123
,
456
,
CommandFlags
.
HighPriority
));
mock
.
Verify
(
_
=>
_
.
SortedSetRangeByValue
(
"prefix:key"
,
"min"
,
"max"
,
Exclude
.
Start
,
Order
.
Ascending
,
123
,
456
,
CommandFlags
.
HighPriority
));
}
[
Fact
]
public
void
SortedSetRangeByValueDesc
()
{
wrapper
.
SortedSetRangeByValue
(
"key"
,
"min"
,
"max"
,
Exclude
.
Start
,
Order
.
Descending
,
123
,
456
,
CommandFlags
.
HighPriority
);
mock
.
Verify
(
_
=>
_
.
SortedSetRangeByValue
(
"prefix:key"
,
"min"
,
"max"
,
Exclude
.
Start
,
Order
.
Descending
,
123
,
456
,
CommandFlags
.
HighPriority
));
}
[
Fact
]
...
...
StackExchange.Redis.Tests/WrapperBaseTests.cs
View file @
c33f7283
...
...
@@ -690,7 +690,14 @@ public void SortedSetRangeByScoreWithScoresAsync()
public
void
SortedSetRangeByValueAsync
()
{
wrapper
.
SortedSetRangeByValueAsync
(
"key"
,
"min"
,
"max"
,
Exclude
.
Start
,
123
,
456
,
CommandFlags
.
HighPriority
);
mock
.
Verify
(
_
=>
_
.
SortedSetRangeByValueAsync
(
"prefix:key"
,
"min"
,
"max"
,
Exclude
.
Start
,
123
,
456
,
CommandFlags
.
HighPriority
));
mock
.
Verify
(
_
=>
_
.
SortedSetRangeByValueAsync
(
"prefix:key"
,
"min"
,
"max"
,
Exclude
.
Start
,
Order
.
Ascending
,
123
,
456
,
CommandFlags
.
HighPriority
));
}
[
Fact
]
public
void
SortedSetRangeByValueDescAsync
()
{
wrapper
.
SortedSetRangeByValueAsync
(
"key"
,
"min"
,
"max"
,
Exclude
.
Start
,
Order
.
Descending
,
123
,
456
,
CommandFlags
.
HighPriority
);
mock
.
Verify
(
_
=>
_
.
SortedSetRangeByValueAsync
(
"prefix:key"
,
"min"
,
"max"
,
Exclude
.
Start
,
Order
.
Descending
,
123
,
456
,
CommandFlags
.
HighPriority
));
}
[
Fact
]
...
...
StackExchange.Redis/StackExchange/Redis/KeyspaceIsolation/DatabaseWrapper.cs
View file @
c33f7283
...
...
@@ -565,9 +565,10 @@ public RedisValue[] SortedSetRangeByValue(RedisKey key, RedisValue min, RedisVal
{
return
Inner
.
SortedSetRangeByValue
(
ToInner
(
key
),
min
,
max
,
exclude
,
Order
.
Ascending
,
skip
,
take
,
flags
);
}
public
RedisValue
[]
SortedSetRangeByValue
(
RedisKey
key
,
RedisValue
min
=
default
(
RedisValue
),
RedisValue
max
=
default
(
RedisValue
),
Exclude
exclude
=
Exclude
.
None
,
Order
order
=
Order
.
Ascending
,
long
skip
=
0
,
long
take
=
-
1
,
CommandFlags
flags
=
CommandFlags
.
None
)
{
return
Inner
.
SortedSetRangeByValue
(
ToInner
(
key
),
min
,
max
,
exclude
,
skip
,
take
,
flags
);
return
Inner
.
SortedSetRangeByValue
(
ToInner
(
key
),
min
,
max
,
exclude
,
order
,
skip
,
take
,
flags
);
}
public
long
?
SortedSetRank
(
RedisKey
key
,
RedisValue
member
,
Order
order
=
Order
.
Ascending
,
CommandFlags
flags
=
CommandFlags
.
None
)
...
...
StackExchange.Redis/StackExchange/Redis/KeyspaceIsolation/WrapperBase.cs
View file @
c33f7283
...
...
@@ -541,11 +541,11 @@ public Task<SortedSetEntry[]> SortedSetRangeByScoreWithScoresAsync(RedisKey key,
return
Inner
.
SortedSetRangeByScoreWithScoresAsync
(
ToInner
(
key
),
start
,
stop
,
exclude
,
order
,
skip
,
take
,
flags
);
}
public
Task
<
RedisValue
[
]>
SortedSetRangeByValueAsync
(
RedisKey
key
,
RedisValue
min
,
RedisValue
max
,
Exclude
exclude
,
long
skip
,
long
take
,
CommandFlags
flags
)
{
return
Inner
.
SortedSetRangeByValueAsync
(
ToInner
(
key
),
min
,
max
,
exclude
,
Order
.
Ascending
,
skip
,
take
,
flags
);
}
public
Task
<
RedisValue
[
]>
SortedSetRangeByValueAsync
(
RedisKey
key
,
RedisValue
min
=
default
(
RedisValue
),
RedisValue
max
=
default
(
RedisValue
),
Exclude
exclude
=
Exclude
.
None
,
Order
order
=
Order
.
Ascending
,
long
skip
=
0
,
long
take
=
-
1
,
CommandFlags
flags
=
CommandFlags
.
None
)
{
return
Inner
.
SortedSetRangeByValueAsync
(
ToInner
(
key
),
min
,
max
,
exclude
,
order
,
skip
,
take
,
flags
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment