manager

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package manager @Author Clover @Data 2024/7/28 下午10:37:00 @Desc etcd/bbolt 嵌入式 键值存储 用户持久化缓存,以及支持一些缓存的备份操作

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDefaultDB          = errors.New("default db error")
	ErrGetImgBucketByDate = errors.New("get image bucket by date error")
	ErrGetImgNil          = errors.New("get image nil error in bolt")
)

Functions

func CloseDB

func CloseDB()

CloseDB 关闭数据库

func LoadCache

func LoadCache(cache any) (any, error)

LoadCache 读取cache

func SaveCache

func SaveCache(cache any) error

SaveCache 保存 cache

func ValidPath

func ValidPath(path string, isCreate bool) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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