util/syspolicy: add caching handler (#10288)

Fixes tailscale/corp#15850
Co-authored-by: Adrian Dewhurst <adrian@tailscale.com>
Signed-off-by: Claire Wang <claire@tailscale.com>
This commit is contained in:
Claire Wang
2023-11-17 12:31:51 -05:00
committed by GitHub
parent 719ee4415e
commit b8a2aedccd
4 changed files with 371 additions and 7 deletions

View File

@ -12,7 +12,7 @@ import (
type windowsHandler struct{}
func init() {
RegisterHandler(windowsHandler{})
RegisterHandler(NewCachingHandler(windowsHandler{}))
}
func (windowsHandler) ReadString(key string) (string, error) {