Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5384a2d8
You need to sign in or sign up before continuing.
Commit
5384a2d8
authored
Dec 18, 2009
by
antirez
Browse files
SORT STORE test added
parent
d922ae65
Changes
1
Show whitespace changes
Inline
Side-by-side
test-redis.tcl
View file @
5384a2d8
...
...
@@ -904,6 +904,11 @@ proc main {server port} {
$r sort tosort
{
BY weight_*
}
}
$res
test
{
SORT with BY and STORE against the newly created list
}
{
$r sort tosort
{
BY weight_*
}
store sort-res
$r lrange sort-res 0 -1
}
$res
test
{
SORT direct, numeric, against the newly created list
}
{
$r sort tosort
}
[
lsort -integer $res
]
...
...
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