-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put a cache in front of the vuln DB. The cache uses the modified time of the DB to determine when it is out of date. The cache has no maximum size, because we don't expect the vuln DB to be too large. Currently the unzipped JSON files total under 3 MB, as determined by listing the bucket with gsutil ls -l. Since most of it is strings, that should be pretty close to the memory occupied by the unmarshaled data. Also, make other minor changes to the package that don't affect its behavior, mostly improved doc. Change-Id: I374fa043805fe0fa939afac80ac0ee21e71e9167 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/636515 Reviewed-by: Robert Findley <[email protected]> kokoro-CI: kokoro <[email protected]> Reviewed-by: Tatiana Bradley <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
- Loading branch information
Showing
6 changed files
with
151 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.