cache

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCachedIndex

func GetCachedIndex() (*model.Cache, error)

GetCachedIndex returns a cached index or error.

func GetCachedPost

func GetCachedPost(id uint64) (*model.Cache, error)

GetCachedPost returns a cached post or error.

func GetCachedThread

func GetCachedThread(id uint64) (*model.Cache, error)

GetCachedThread returns a cached thread or error.

func SetCachedIndex

func SetCachedIndex(status int, data []model.Post) error

SetCachedIndex sets an index or error (data == nil) in cache.

func SetCachedPost

func SetCachedPost(id uint64, status int, data *model.Post) error

SetCachedPost sets a post or error (data == nil) in cache.

func SetCachedThread

func SetCachedThread(id uint64, status int, data []model.Post) error

SetCachedThread sets a thread or error (data == nil) in cache.

Types

This section is empty.

Jump to

Keyboard shortcuts

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