dbkv

package
v0.0.0-...-69b6b67 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDBKV

func DeleteDBKV(tx *gorm.DB, keystr string) error

func SetDBKV

func SetDBKV(tx *gorm.DB, keystr string, value string) error

Types

type DBKVModel

type DBKVModel struct {
	Id    int64  `gorm:"primarykey"`
	Key   string `gorm:"index;unique"`
	Value string
}

func GetDBKV

func GetDBKV(tx *gorm.DB, keyStr string, fromCache bool, updateCache bool) (*DBKVModel, error)

Jump to

Keyboard shortcuts

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