Documentation
¶
Index ¶
- Variables
- 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
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidConnectionState indicate that the connection has not been opened properly. ErrInvalidConnectionState = errors.New("invalid connection state") )
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory is an implementation of cache.Cacher
func (*Memory) CheckHealth ¶
CheckHealth return health check func.
Click to show internal directories.
Click to hide internal directories.