-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Sometimes it's easy to infer the data stored in a cache from its name alone. Other times, though, it's cumbersome and inconvenient to give a cache a name that's sufficient to unambiguously convey what it contains. The tradeoff between variable name length and information content becomes an impossible optimization problem.
It'd be cool if, at the time of cache creation (say, as an additional argument to simpleCache), we could make it possible to provide a more thorough description of what the cache contains. This could be stored as a small text file parallel to the cache. Then we could have a function like describeCache that would read the text file associated with the indicated cache and provide the description. This could be extended to a cache folder/subfolder if a text file is present for the folder and/or paired with listCaches.