Documentation ¶
Index ¶
- type Cache
- func (c *Cache) Del(ctx context.Context, key string) error
- func (c *Cache) Get(ctx context.Context, key string, target any) error
- func (c *Cache) Set(ctx context.Context, key string, value any, _ time.Duration) error
- func (c *Cache) TrySet(ctx context.Context, key string, value any, lifetime time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache containse memory cache storage
func NewTimeout ¶
NewTimeout returns cache with timout value
Click to show internal directories.
Click to hide internal directories.