This repository was archived by the owner on Nov 3, 2023. It is now read-only.
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
Repository class caches trees forever #29
Open
Description
Forever is a long time. There should be an automatic or manual way to flush the Repository.tree
cache. Options:
- Check the SHA of the provided commit-ish on GitHub. If it matches the cached SHA, cool; otherwise flush the cache and instantiate a new
Tree
. - Add a method on
Repository
to remove the cache entry for a particular commit-ish (or all cache entries).
I like the first option better. If one API call is too much of a perf hit for Repository.tree
, we could make the staleness check optional with a parameter. Thoughts?
(Needed for danports/amber#14)
Metadata
Metadata
Assignees
Labels
No labels