database

package
v0.0.0-...-d704c37 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const BadgerPath string = "../badger"

Variables

View Source
var BadgerDB *badger.DB
View Source
var Client *redis.Client

Functions

func CheckAlive

func CheckAlive(retryTime int) bool

func DeleteBadgerKey

func DeleteBadgerKey(key []byte) error

func DumpRDBFile

func DumpRDBFile() string

func ExecuteCommand

func ExecuteCommand(command string) (string, error)

func GetBadgerVal

func GetBadgerVal(key []byte) []byte

func GetKey

func GetKey(command string) (string, error)

func GetKeyWriteLog

func GetKeyWriteLog(key string) (*models.OperationKeyLog, error)

func InitBadgerDB

func InitBadgerDB()

func InitRedisClient

func InitRedisClient()

func IsQueryCmd

func IsQueryCmd(command string) bool

func IsRunning

func IsRunning() bool

func IsValidCmd

func IsValidCmd(command string) bool

func NewBadgerDB

func NewBadgerDB() *badger.DB

func NewRedisClient

func NewRedisClient() *redis.Client

func ReplaceKey

func ReplaceKey(command string, key string) (string, error)

func RestartRedisServer

func RestartRedisServer()

func StartRedisServer

func StartRedisServer()

func StopRedis

func StopRedis()

func UpdateBadgerVal

func UpdateBadgerVal(key []byte, val []byte) error

func UpdateKeyWriteLog

func UpdateKeyWriteLog(operations []models.OperationLog)

func UpdateSingleKeyWriteLog

func UpdateSingleKeyWriteLog(op models.OperationLog)

Types

This section is empty.

Jump to

Keyboard shortcuts

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