aboutsummaryrefslogtreecommitdiff
path: root/cmd/resolver
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-04-15 02:56:59 +0700
committerShulhan <ms@kilabit.info>2022-04-15 02:56:59 +0700
commita33c4f7e3c9bf4b9c394a0be426b4a6740382aee (patch)
treee5f66c8ac80a76f56263467d1aac3e199ddf7907 /cmd/resolver
parent143087b8edc9fcfbf93dccf213c569797b1eea73 (diff)
downloadrescached-a33c4f7e3c9bf4b9c394a0be426b4a6740382aee.tar.xz
all: implement API to remove all caches
On the HTTP side, if the query parameter "name" for "DELETE /api/caches" is "all" it will remove all caches. On the resolver side, if the parameter for "caches remove" is "all" it will remove all caches. This changes require latest lib/dns on share module.
Diffstat (limited to 'cmd/resolver')
-rw-r--r--cmd/resolver/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/resolver/main.go b/cmd/resolver/main.go
index 0be5375..90a1686 100644
--- a/cmd/resolver/main.go
+++ b/cmd/resolver/main.go
@@ -163,6 +163,7 @@ caches search <string>
caches remove <string>
Remove the domain name from rescached caches.
+ If the parameter is "all", it will remove all caches.
== Examples