Skip to content
DocsTry Aspire
DocsTry

withCacheFile

Method
📦 CommunityToolkit.Aspire.Hosting.Bitwarden.SecretManager v13.5.0
interface BitwardenSecretManagerResource {
// ... omitted for brevity
withCacheFile(cacheFile: string): BitwardenSecretManagerResource;
}

Signature

methodwithCacheFilebuilder
Overrides the AppHost cache file path (integration bookkeeping: Bitwarden project ID, secret ID mappings). Defaults to `.bitwarden/{resourceName}.{environment}.json` relative to the AppHost directory. Override to share the cache across multiple AppHost projects, or to store it in a CI cache directory.
withCacheFile(cacheFile: string): BitwardenSecretManagerResource
cacheFilestring
BitwardenSecretManagerResource

Applies to

This method applies to the following types: