Documentation ¶
Index ¶
- func DelCache(bucket string, key []byte) (err error)
- func GetCache(bucket string, key []byte) (entry *nutsdb.Entry, err error)
- func GetInitNutsDbGlobalPath() (string, error)
- func GetNutsDbCacheBean() (*nutsdb.DB, error)
- func InitSetNutsDbGlobalPath(dir string) error
- func ScanByKeyPrefix(bucket string, keyPrefix string, offset int, rows int) (entries nutsdb.Entries, off int, err error)
- func SetCache(bucket string, key []byte, value []byte, ttl uint32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInitNutsDbGlobalPath ¶
GetInitNutsDbGlobalPath 获取NutsDb数据库安装路径,当且仅当数据库实例化才可获取安装路径
func GetNutsDbCacheBean ¶
GetNutsDbCacheBean 获取实例化单例缓存对象
func InitSetNutsDbGlobalPath ¶
InitSetNutsDbGlobalPath 初始化NutsDb数据库安装路径,仅初始化一次,默认安装位置:/tmp/hcache/nutsdb/.cache/db,建议:在init方法下初始化NutsDb安装路径
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.