Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f1c237cb
Commit
f1c237cb
authored
Jun 15, 2016
by
antirez
Browse files
Test TOUCH and new TTL / TYPE behavior about object access time.
parent
d4831e32
Changes
2
Show whitespace changes
Inline
Side-by-side
tests/test_helper.tcl
View file @
f1c237cb
...
@@ -46,6 +46,7 @@ set ::all_tests {
...
@@ -46,6 +46,7 @@ set ::all_tests {
unit/scripting
unit/scripting
unit/maxmemory
unit/maxmemory
unit/introspection
unit/introspection
unit/introspection-2
unit/limits
unit/limits
unit/obuf-limits
unit/obuf-limits
unit/bitops
unit/bitops
...
...
tests/unit/introspection-2.tcl
0 → 100644
View file @
f1c237cb
start_server
{
tags
{
"introspection"
}}
{
test
{
TTL and TYPYE do not alter the last access time of a key
}
{
r set foo bar
after 3000
r ttl foo
r type foo
assert
{[
r object idletime foo
]
>= 2
}
}
test
{
TOUCH alters the last access time of a key
}
{
r set foo bar
after 3000
r touch foo
assert
{[
r object idletime foo
]
< 2
}
}
test
{
TOUCH returns the number of existing keys specified
}
{
r flushdb
r set key1 1
r set key2 2
r touch key0 key1 key2 key3
}
2
}
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