type CacheHook - AWS Secrets Manager

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

type CacheHook

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

方法

Put

Put(data interface{}) interface{}

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

Get

Get(data interface{}) interface{}

从已缓存对象派生对象。