I wonder why do you need caching in the first place, e.g. querying the doc dynamically is basically instantaneous :
julia> using Colors
julia> @time Base.Docs.doc(Base.Docs.Binding(Main, :RGB))
0.000075 seconds (19 allocations: 1.375 KiB)
RGB is the standard Red-Green-Blue (sRGB) colorspace. Values of the individual color channels range from 0 (black)
to 1 (saturated). If you want "Integer" storage types (e.g., 255 for full color), use N0f8(1) instead (see
FixedPointNumbers).