Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithSource ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache
func NewCache ¶
func NewCache(opts ...CacheOption) *Cache
type CacheOption ¶
type CacheOption func(*Cache)
type ICache ¶
type ICache interface { Get(ctx context.Context, key string) (interface{}, error) Set(ctx context.Context, key string, data interface{}) error }
ICache
type MemoryCache ¶
type MemoryCache struct {
// contains filtered or unexported fields
}
type MemoryCacheSlot ¶
type MemoryCacheSlot struct {
// contains filtered or unexported fields
}
func (MemoryCacheSlot) Data ¶
func (m MemoryCacheSlot) Data() interface{}
Click to show internal directories.
Click to hide internal directories.