Documentation ¶ Index ¶ type Cache func (store *Cache) Delete(ctx context.Context, key string) error func (store *Cache) Get(ctx context.Context, key string) (interface{}, error) func (store *Cache) Set(ctx context.Context, key string, val any) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache struct { Map sync.Map } Cache 简单缓存 func (*Cache) Delete ¶ func (store *Cache) Delete(ctx context.Context, key string) error func (*Cache) Get ¶ func (store *Cache) Get(ctx context.Context, key string) (interface{}, error) func (*Cache) Set ¶ func (store *Cache) Set(ctx context.Context, key string, val any) error Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.