From 7733e13700fa23908f30d9370b5df09462e3a40e Mon Sep 17 00:00:00 2001 From: fang Date: Thu, 15 Feb 2024 12:27:50 +0100 Subject: [PATCH] eyre: improve cache visibility Include the cached responses in their own named mass section, and add a scry endpoint that produces the entire current cache. A follow-up commit will leverage this for showing it in the debug dashboard. --- pkg/arvo/sys/vane/eyre.hoon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/arvo/sys/vane/eyre.hoon b/pkg/arvo/sys/vane/eyre.hoon index 9485f7f2a6..78b5b2f1ad 100644 --- a/pkg/arvo/sys/vane/eyre.hoon +++ b/pkg/arvo/sys/vane/eyre.hoon @@ -4144,7 +4144,7 @@ ?~ entry=(~(get by cache) u.url) ~ ?. =(u.aeon aeon.u.entry) ~ ?~ val=val.u.entry ~ - ?: &(auth.u.val !=([~ ~] lyc)) ~ + ?: &(auth.u.val !=([~ ~] lyc)) ~ ``noun+!>(u.val) :: private endpoints ?. ?=([~ ~] lyc) ~ @@ -4153,6 +4153,7 @@ ?+ tyl ~ [%$ %whey ~] =- ``mass+!>(`(list mass)`-) :~ bindings+&+bindings.server-state.ax + cache+&+cache.server-state.ax auth+&+auth.server-state.ax connections+&+connections.server-state.ax channels+&+channel-state.server-state.ax @@ -4189,6 +4190,7 @@ ?. ?=(%$ ren) ~ ?+ syd ~ %bindings ``noun+!>(bindings.server-state.ax) + %cache ``noun+!>(cache.server-state.ax) %connections ``noun+!>(connections.server-state.ax) %authentication-state ``noun+!>(auth.server-state.ax) %channel-state ``noun+!>(channel-state.server-state.ax)