user

package
v0.0.0-...-9665562 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func New

func New(conn *inmemory.InMemory) *DB

func (*DB) Del

func (d *DB) Del(ctx context.Context, key string) (bool, error)

func (*DB) Exists

func (d *DB) Exists(ctx context.Context, key string) (bool, error)

func (*DB) Get

func (d *DB) Get(ctx context.Context, key string) (string, error)

func (*DB) Set

func (d *DB) Set(ctx context.Context, key string, value interface{}, expireTime time.Duration) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL