[Libguestfs] [PATCH 1/3] generator: isolate memoized cache in own module