Documentation
¶
Index ¶
- type Driver
- func (d *Driver) Clear(_ context.Context) error
- func (d *Driver) Delete(ctx context.Context, keys ...string) error
- func (d *Driver) Get(ctx context.Context, key string) ([]byte, error)
- func (d *Driver) Has(ctx context.Context, keys ...string) (map[string]bool, error)
- func (d *Driver) MExpire(ctx context.Context, items ...kv.Item) error
- func (d *Driver) MGet(ctx context.Context, keys ...string) (map[string][]byte, error)
- func (d *Driver) Set(ctx context.Context, items ...kv.Item) error
- func (d *Driver) Stop(_ context.Context)
- func (d *Driver) TTL(ctx context.Context, keys ...string) (map[string]string, error)
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func NewInMemoryDriver ¶
func NewInMemoryDriver(log *slog.Logger, tracer *sdktrace.TracerProvider) *Driver
func (*Driver) MExpire ¶
MExpire sets the expiration time to the key If key already has the expiration time, it will be overwritten
Click to show internal directories.
Click to hide internal directories.