Documentation ¶
Index ¶
- type Memory
- func (m *Memory) CheckHealth(ctx context.Context) error
- func (m *Memory) Close(ctx context.Context) error
- func (m *Memory) Delete(ctx context.Context, key string) error
- func (m *Memory) Get(ctx context.Context, key string) ([]byte, error)
- func (m *Memory) Open(ctx context.Context) error
- func (m *Memory) Set(ctx context.Context, key string, val []byte, opts ...cache.SetOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory is an implementation of cache.Cacher
func New ¶
New return new memory cache. Interval is optional, but if set it will be used for cleanup the expired keys periodically.
func (*Memory) CheckHealth ¶ added in v0.2.1
CheckHealth return health check func.
Click to show internal directories.
Click to hide internal directories.