Details
- Reviewers
zack - Maniphest Tasks
- T745: Vault: Add cache expiration feature
Diff Detail
- Repository
- rDVAU Software Heritage Vault
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 1001 Build 1326: arc lint + arc unit
Event Timeline
Looks good.
Except for some naming nits (which are totally debatable!) and missing docstrings (which are not ☺).
sql/swh-vault-schema.sql | ||
---|---|---|
27 | Sorry to nit about naming, but I don't quite like "permanent" because, AFAICT, it is not really permanent, as in, forever. We might change the boolean in the future to False, and the vault remains a cache thingie anyhow. | |
swh/vault/backend.py | ||
277 | please add a short docstring here explaining this is the low-level expiry method, used by the other top-level ones | |
294 | how about "cache_expire_recent" here? Also, please add a docstring here explaining the policy behind the cache expiry done by this method. | |
300 | ditto: docstring missing here explaining the policy implemented by this expiry method |