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
94751543
Commit
94751543
authored
Mar 15, 2017
by
Salvatore Sanfilippo
Committed by
GitHub
Mar 15, 2017
Browse files
Merge pull request #3875 from oranagra/lfu_tests
add LFU policies to the test suite, just for coverage
parents
a62f7863
4acb4da1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/maxmemory.tcl
View file @
94751543
...
@@ -24,7 +24,7 @@ start_server {tags {"maxmemory"}} {
...
@@ -24,7 +24,7 @@ start_server {tags {"maxmemory"}} {
}
}
foreach policy
{
foreach policy
{
allkeys-random allkeys-lru
volatile-lr
u volatile-random volatile-ttl
allkeys-random allkeys-lru
allkeys-lfu volatile-lru volatile-lf
u volatile-random volatile-ttl
}
{
}
{
test
"maxmemory - is the memory limit honoured? (policy
$policy
)"
{
test
"maxmemory - is the memory limit honoured? (policy
$policy
)"
{
# make sure to start with a blank instance
# make sure to start with a blank instance
...
@@ -98,7 +98,7 @@ start_server {tags {"maxmemory"}} {
...
@@ -98,7 +98,7 @@ start_server {tags {"maxmemory"}} {
}
}
foreach policy
{
foreach policy
{
volatile-lru volatile-random volatile-ttl
volatile-lru
volatile-lfu
volatile-random volatile-ttl
}
{
}
{
test
"maxmemory - policy
$policy
should only remove volatile keys."
{
test
"maxmemory - policy
$policy
should only remove volatile keys."
{
# make sure to start with a blank instance
# make sure to start with a blank instance
...
...
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