buntdb

package module
v0.0.0-...-2bc515d Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

说明

GIN + ENT/SQLX + CASBIN + WIRE + I18N

为了保持系统精简性(目前数据库处理只使用SQLX), 暂时移除了ENT相关的内容, 结构暂时保留

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store buntdb存储

func NewStore

func NewStore(path string) (*Store, error)

NewStore 创建基于buntdb的文件存储

func (*Store) Check

func (a *Store) Check(ctx context.Context, key string) (bool, error)

Check ...

func (*Store) Close

func (a *Store) Close() error

Close ...

func (*Store) Delete

func (a *Store) Delete(ctx context.Context, key string) error

Delete ...

func (*Store) Get

func (a *Store) Get(ctx context.Context, key string) (string, bool, error)

Get ...

func (*Store) Set

func (a *Store) Set(ctx context.Context, key, value string, expiration time.Duration) error

Set ...

func (*Store) Set1

func (a *Store) Set1(ctx context.Context, key string, expiration time.Duration) error

Set1 ...

Jump to

Keyboard shortcuts

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