---
title: "Using the Secrets Manager Cache with .NET"
url: https://daily.dev/posts/using-the-secrets-manager-cache-with-net-5kqlj5q06
source_url: https://nodogmablog.bryanhogan.net/2022/09/using-the-secrets-manager-cache-with-net
type: article
source: "No Dogma Blog (Bryan Hogan)"
published: 2026-05-31T07:47:09.632Z
updated: 2026-05-31T08:53:52.450Z
tags: ["aws", ".net"]
reading_time: 3
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Using the Secrets Manager Cache with .NET

**[No Dogma Blog \(Bryan Hogan\)](https://daily.dev/sources/bryanhogan)** · 3 min read · 0 upvotes · 0 comments

## Summary

AWS Secrets Manager's built-in caching client for .NET (`SecretsManagerCache`) reduces redundant API calls by storing secrets locally for a configurable TTL. A step-by-step walkthrough covers creating a secret via CLI, setting up a .NET console app, adding the `AWSSDK.SecretsManager.Caching` NuGet package, and configuring the cache with a custom TTL and version stage. The demo illustrates that a cached secret is served locally even when the network is disconnected, as long as the TTL hasn't expired.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nodogmablog.bryanhogan.net/2022/09/using-the-secrets-manager-cache-with-net>

---

Tags: [#aws](https://daily.dev/tags/aws), [#.net](https://daily.dev/tags/.net)

[View this post on daily.dev](https://daily.dev/posts/using-the-secrets-manager-cache-with-net-5kqlj5q06)
