Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
a952c074
Commit
a952c074
authored
Jan 11, 2018
by
cricketliu
Committed by
Miek Gieben
Jan 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md (#1381)
Minor textual cleanup.
parent
f1b280de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
plugin/cache/README.md
plugin/cache/README.md
+7
-7
No files found.
plugin/cache/README.md
View file @
a952c074
...
...
@@ -6,7 +6,7 @@
## Description
With
*cache*
enabled all records except zone transfers and metadata records will be cached for up to
With
*cache*
enabled
,
all records except zone transfers and metadata records will be cached for up to
3600s. Caching is mostly useful in a scenario when fetching data from the backend (upstream,
database, etc.) is expensive.
...
...
@@ -16,9 +16,9 @@ database, etc.) is expensive.
cache [TTL] [ZONES...]
~~~
*
**TTL**
max TTL in seconds. If not specified, the maximum TTL will be used which is 3600 for
*
**TTL**
max TTL in seconds. If not specified, the maximum TTL will be used
,
which is 3600 for
noerror responses and 1800 for denial of existence ones.
Setting a TTL of 300:
`cache 300`
would cache
the record
up to 300 seconds.
Setting a TTL of 300:
`cache 300`
would cache
records
up to 300 seconds.
*
**ZONES**
zones it should cache for. If empty, the zones from the configuration block are used.
Each element in the cache is cached according to its TTL (with
**TTL**
as the max).
...
...
@@ -36,13 +36,13 @@ cache [TTL] [ZONES...] {
~~~
*
**TTL**
and
**ZONES**
as above.
*
`success`
, override the settings for caching successful responses
,
**CAPACITY**
indicates the maximum
*
`success`
, override the settings for caching successful responses
.
**CAPACITY**
indicates the maximum
number of packets we cache before we start evicting (
*randomly*
).
**TTL**
overrides the cache maximum TTL.
*
`denial`
, override the settings for caching denial of existence responses
,
**CAPACITY**
indicates the maximum
*
`denial`
, override the settings for caching denial of existence responses
.
**CAPACITY**
indicates the maximum
number of packets we cache before we start evicting (LRU).
**TTL**
overrides the cache maximum TTL.
There is a third category (
`error`
) but those responses are never cached.
*
`prefetch`
,
will prefetch popular items when they are about to be expunged from the cache.
Popular means
**AMOUNT**
queries have been seen no gaps of
**DURATION**
or more between them.
*
`prefetch`
will prefetch popular items when they are about to be expunged from the cache.
Popular means
**AMOUNT**
queries have been seen
with
no gaps of
**DURATION**
or more between them.
**DURATION**
defaults to 1m. Prefetching will happen when the TTL drops below
**PERCENTAGE**
,
which defaults to
`10%`
. Values should be in the range
`[10%, 90%]`
. Note the percent sign is
mandatory.
**PERCENTAGE**
is treated as an
`int`
.
...
...
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