Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add memory cache backend for improved scan efficiency #7047

Closed
knqyf263 opened this issue Jun 27, 2024 · 0 comments · Fixed by #7048
Closed

Add memory cache backend for improved scan efficiency #7047

knqyf263 opened this issue Jun 27, 2024 · 0 comments · Fixed by #7048
Assignees

Comments

@knqyf263
Copy link
Collaborator

Description

Introduce a memory cache backend to scan cache, improving performance for repository, filesystem and SBOM scans.

Current Situation

  • File system cache is currently used for all scan types by default
  • For repository, filesystem and SBOM scans, this leads to inefficient write-then-delete operations as they don't need cache.

Key Changes

  • Implements an in-memory cache backend in addition to filesystem and Redis backends
  • Sets memory cache as default for repository, filesystem and SBOM scans
  • Eliminates unnecessary disk I/O in these scans

Benefits

  • Improved efficiency: Removes redundant write/delete operations
  • Faster scans: Reduces I/O operations, especially for repository, filesystem and SBOM scans
  • Versatility: Can be used for other scan types when persistent caching isn't needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant