bucket

package
v2.0.32 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBucketStore

type IBucketStore interface {
	Set(ctx context.Context, field string, value string) (int64, error)
	Get(ctx context.Context, key string) (string, error)
	Len(ctx context.Context) (int64, error)
	Has(ctx context.Context, key string) (bool, error)
	Del(ctx context.Context, key string) (int64, error)
}

type IState added in v2.0.32

type IState interface {
	Set(ctx context.Context, id int64, item map[string]any) error
	Get(ctx context.Context, id int64) (map[string]any, error)
	Del(ctx context.Context, id int64) error
	Update(ctx context.Context, id int64, key string, val any) (bool, error)
	UpdateMap(ctx context.Context, id int64, data map[string]any) (map[string]any, error)
	Total() (int64, error)
	Has(ctx context.Context, id int64) (bool, error)
}

Jump to

Keyboard shortcuts

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