Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an accessor for the list of pool names #12073

Closed
christofchen opened this issue Oct 7, 2022 · 0 comments
Closed

Provide an accessor for the list of pool names #12073

christofchen opened this issue Oct 7, 2022 · 0 comments

Comments

@christofchen
Copy link
Contributor

  • Program: dnsdist
  • Issue type: Feature request

Short description

provide a CLI way to retrieve the list of pool names.

Usecase

i use multiple pools with caches. sometimes i need to remove an entry with expungeByName. Unfortunately i do not know in which cache the entry resides, so i would like to remove the entry from all caches.

Description

Having a function "getPoolNames()" returning a list of pools would hopefully allow something like this:
poolnames=getPoolNames() for i,v in ipairs(poolnames) do getPool(v):getCache():expungeByName("what.ever.name") end
to flush a name from all the caches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants