Documentation ¶
Index ¶
- Variables
- type Cache
- func (m *Cache[T]) Close() error
- func (m *Cache[T]) Del(ctx context.Context, key string) error
- func (m *Cache[T]) DelAll(ctx context.Context) error
- func (m *Cache[T]) Get(ctx context.Context, key string) (*T, error)
- func (m *Cache[T]) MultiDel(ctx context.Context, keys []string) error
- func (m *Cache[T]) MultiGet(ctx context.Context, keys []string) (map[string]T, error)
- func (m *Cache[T]) MultiSet(ctx context.Context, valMap map[string]T, expiration time.Duration) error
- func (m *Cache[T]) Set(ctx context.Context, key string, val T, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorType = fmt.Errorf("type error")
)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.