Documentation
¶
Index ¶
- type InMemoryCache
- func (c *InMemoryCache) Delete(_ context.Context, key string)
- func (c *InMemoryCache) Get(_ context.Context, key string) any
- func (c *InMemoryCache) Set(_ context.Context, key string, value any, ttl time.Duration)
- func (c *InMemoryCache) Start(_ context.Context) error
- func (c *InMemoryCache) Stop(_ context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryCache ¶
type InMemoryCache struct {
// contains filtered or unexported fields
}
func New ¶
func New() *InMemoryCache
Click to show internal directories.
Click to hide internal directories.