Documentation
¶
Overview ¶
Package cache the cache JS implementation
Index ¶
- type Cache
- type Module
- func (c *Module) Del(call sobek.FunctionCall, vm *sobek.Runtime) sobek.Value
- func (c *Module) Get(call sobek.FunctionCall, vm *sobek.Runtime) sobek.Value
- func (c *Module) GetBytes(call sobek.FunctionCall, vm *sobek.Runtime) sobek.Value
- func (c *Module) Instantiate(rt *sobek.Runtime) (sobek.Value, error)
- func (c *Module) Set(call sobek.FunctionCall, vm *sobek.Runtime) sobek.Value
- func (c *Module) SetBytes(call sobek.FunctionCall, vm *sobek.Runtime) sobek.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
Get(ctx context.Context, key string) ([]byte, error)
Set(ctx context.Context, key string, value []byte, timeout time.Duration) error
Del(ctx context.Context, key string) error
}
A Cache interface is used to store bytes.
Click to show internal directories.
Click to hide internal directories.