cachedb

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheDB

type CacheDB struct {
	// contains filtered or unexported fields
}

func ConnectDB

func ConnectDB(datasource string) (*CacheDB, error)

func (*CacheDB) AutoVacuum

func (v *CacheDB) AutoVacuum() error

func (*CacheDB) Close

func (v *CacheDB) Close()

func (*CacheDB) Count

func (v *CacheDB) Count(table int, min, max int64) (int64, error)

func (*CacheDB) DeleteData

func (v *CacheDB) DeleteData(table int, id int64) (int64, error)

func (*CacheDB) GetNextData

func (v *CacheDB) GetNextData(table int, curr int64) (int64, []byte, error)

func (*CacheDB) GetNextLimitData

func (v *CacheDB) GetNextLimitData(table int, curr int64, limit int64) (*list.List, error)

func (*CacheDB) InitDB

func (v *CacheDB) InitDB(num int) error

func (*CacheDB) InsertData

func (v *CacheDB) InsertData(table int, id int64, data []byte) (int64, error)

func (*CacheDB) Reduce

func (v *CacheDB) Reduce() error

type Data

type Data struct {
	Id   int64
	Data []byte
}

Jump to

Keyboard shortcuts

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