show

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: 7 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 is show dao.

func New

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

New new a show dao.

func (*Dao) AddRcmmndCache

func (d *Dao) AddRcmmndCache(c context.Context, mid string, aids ...int64) (err error)

AddRcmmndCache add recommend cache.

func (*Dao) Close

func (d *Dao) Close() (err error)

Close close memcache resource.

func (*Dao) ExistRcmmndCache

func (d *Dao) ExistRcmmndCache(c context.Context, mid string) (exist bool, err error)

ExistRcmmndCache check recommend cache exists.

func (*Dao) Heads

func (d *Dao) Heads(ctx context.Context) (heads map[int8][]*show.Head, err error)

Heads get show head data.

func (*Dao) Items

func (d *Dao) Items(ctx context.Context) (items map[int][]*show.Item, err error)

Items get item data.

func (*Dao) Ping

func (d *Dao) Ping(c context.Context) (err error)

func (*Dao) PopRcmmndCache

func (d *Dao) PopRcmmndCache(c context.Context, mid string, cnt int) (aids []int64, err error)

PopRcmmndCache pop recommend cache.

func (*Dao) TempHeads

func (d *Dao) TempHeads(ctx context.Context) (heads map[int8][]*show.Head, err error)

TempHeads get show temp head data.

func (*Dao) TempItems

func (d *Dao) TempItems(ctx context.Context) (items map[int][]*show.Item, err error)

TempItems get temp item data.

Jump to

Keyboard shortcuts

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