timemachine

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

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

Dao .

func New

func New(c *conf.Config) (d *Dao)

New .

func (*Dao) AddCacheTimemachine

func (d *Dao) AddCacheTimemachine(c context.Context, id int64, val *timemachine.Item) (err error)

AddCacheTimemachine Set data to mc

func (*Dao) CacheTimemachine

func (d *Dao) CacheTimemachine(c context.Context, id int64) (res *timemachine.Item, err error)

CacheTimemachine get data from mc

func (*Dao) RawTimemachine

func (d *Dao) RawTimemachine(c context.Context, mid int64) (data *timemachine.Item, err error)

RawTimemachine .

func (*Dao) Timemachine

func (d *Dao) Timemachine(c context.Context, id int64) (res *timemachine.Item, err error)

Timemachine get data from cache if miss will call source method, then add to cache.

Jump to

Keyboard shortcuts

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