NoOpBlobStore

Always-empty store. Used as the earth.worldwind.util.ContentManager.openBlobStore default on platforms that haven't implemented persistence yet, so a layer that opts into caching silently falls back to network-only without crashing.

Functions

Link copied to clipboard
open suspend override fun clear()

Drop every entry. Schema is preserved so subsequent puts succeed.

Link copied to clipboard
open suspend override fun get(uri: String): BlobEntry?

Fetch a previously-stored blob. Null when uri is not in the cache.

Link copied to clipboard
open suspend override fun put(uri: String, bytes: ByteArray, contentType: String? = null, etag: String? = null, lastModified: Instant? = null, responseUrl: String? = null)

Persist or replace the blob for uri. contentType is whatever the server returned (e.g. application/octet-stream, model/gltf-binary); null when unknown. etag and lastModified are conditional-fetch metadata the layer can consult on a future revalidation request. responseUrl is the post-redirect URL the body was actually served from — replayed via BlobEntry.responseUrl on cache hits so callers can resolve relative URIs against the body's true origin. Null when same as uri / unknown.

Link copied to clipboard
open suspend override fun remove(uri: String)

Drop one entry. No-op when uri is absent.

Link copied to clipboard
open suspend override fun sizeBytes(): Long

Total stored payload size in bytes. Excludes metadata + schema overhead; close approximation suitable for budget reporting, not exact accounting.