rediscache

package
v0.0.0-...-f7f4ed5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

type Redis struct {
	Pool *redis.Pool
}

Redis -

func (*Redis) GetByID

func (r *Redis) GetByID(id string) (*grpcProto.Article, bool)

GetByID -

func (*Redis) GetTagInfo

func (r *Redis) GetTagInfo(tagName, date string) *grpcProto.TagInfo

GetTagInfo -

func (*Redis) GetTags

func (r *Redis) GetTags(id string) ([]string, error)

GetTags -

func (*Redis) Populate

func (r *Redis) Populate(articles ...*grpcProto.Article) error

Populate - Fill the cache with data

Jump to

Keyboard shortcuts

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