Documentation ¶
Index ¶
- Constants
- Variables
- func CheckAlive(retryTime int) bool
- func DeleteBadgerKey(key []byte) error
- func DumpRDBFile() string
- func ExecuteCommand(command string) (string, error)
- func GetBadgerVal(key []byte) []byte
- func GetKey(command string) (string, error)
- func GetKeyWriteLog(key string) (*models.OperationKeyLog, error)
- func InitBadgerDB()
- func InitRedisClient()
- func IsQueryCmd(command string) bool
- func IsRunning() bool
- func IsValidCmd(command string) bool
- func NewBadgerDB() *badger.DB
- func NewRedisClient() *redis.Client
- func ReplaceKey(command string, key string) (string, error)
- func RestartRedisServer()
- func StartRedisServer()
- func StopRedis()
- func UpdateBadgerVal(key []byte, val []byte) error
- func UpdateKeyWriteLog(operations []models.OperationLog)
- func UpdateSingleKeyWriteLog(op models.OperationLog)
Constants ¶
View Source
const BadgerPath string = "../badger"
Variables ¶
View Source
var BadgerDB *badger.DB
View Source
var Client *redis.Client
Functions ¶
func CheckAlive ¶
func DeleteBadgerKey ¶
func DumpRDBFile ¶
func DumpRDBFile() string
func ExecuteCommand ¶
func GetBadgerVal ¶
func GetKeyWriteLog ¶
func GetKeyWriteLog(key string) (*models.OperationKeyLog, error)
func InitBadgerDB ¶
func InitBadgerDB()
func InitRedisClient ¶
func InitRedisClient()
func IsQueryCmd ¶
func IsValidCmd ¶
func NewBadgerDB ¶
func NewRedisClient ¶
func RestartRedisServer ¶
func RestartRedisServer()
func StartRedisServer ¶
func StartRedisServer()
func UpdateBadgerVal ¶
func UpdateKeyWriteLog ¶
func UpdateKeyWriteLog(operations []models.OperationLog)
func UpdateSingleKeyWriteLog ¶
func UpdateSingleKeyWriteLog(op models.OperationLog)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.