cache

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	InsertSchedule(data *apiPb.InsertScheduleWithIdRequest) error
	GetScheduleById(data *apiPb.GetScheduleWithIdRequest) (*apiPb.GetScheduleWithIdResponse, error)
	DeleteScheduleById(data *apiPb.DeleteScheduleWithIdRequest) error
}

func New

func New(ca interface{}) (Cache, error)

type Redis

type Redis struct {
	Client *redis.Client
}

func (*Redis) DeleteScheduleById

func (c *Redis) DeleteScheduleById(data *apiPb.DeleteScheduleWithIdRequest) error

func (*Redis) GetScheduleById

func (*Redis) InsertSchedule

func (c *Redis) InsertSchedule(data *apiPb.InsertScheduleWithIdRequest) error

Jump to

Keyboard shortcuts

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