type CacheConfig - Amazon Secrets Manager
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

type CacheConfig

适用于缓存的缓存配置选项,例如最大缓存大小、默认版本阶段,以及已缓存密钥的存活时间 (TTL)。

type CacheConfig struct { // The maximum cache size. The default is 1024 secrets. MaxCacheSize int // The TTL of a cache item in nanoseconds. The default is // 3.6e10^12 ns or 1 hour. CacheItemTTL int64 // The version of secrets that you want to cache. The default // is "AWSCURRENT". VersionStage string // Used to hook in-memory cache updates. Hook CacheHook }