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

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

type CacheHook

用于挂钩到缓存中以便对存储于缓存中的密钥执行操作的接口。

方法

Put

Put(data interface{}) interface{}

使对象为存储在缓存中做好准备。

Get

Get(data interface{}) interface{}

从已缓存对象派生对象。