Storage
Overview
Adapters for storing cached data for the Threat Detector
The ThreatDetector class is designed to be used with a cache storage adapter to reduce the number of API calls needed to perform an asset scan. This is done by storing the results of previous API calls in the cache and retrieving them when needed.
Depending on what environment you are using the SDK in, you may need to use the appropriate storage adapter.
Adapters
Adapter | Description |
---|---|
Browser | Stores the cached data in the browser’s local storage. |
Extension | Stores the cached data in the browser’s extension storage. |
Memory | Stores the cached data in memory. This is the default adapter. |
Are we missing an adapter? Feel free to reach out to us at [email protected] and we’ll be happy to discuss implementing it.