cache

package
v0.0.0-...-03830f7 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 7 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 {
	WithData(medallion string, day time.Time, count int64) error
	WithMultiData(data []*pb.MedallionPickupInfo, day time.Time) error
	GetDataSingle(medallion string, day time.Time) (int64, error)
	GetDataMulti(medallions []string, day time.Time) ([]*pb.MedallionPickupInfo, error)
	Clear() error
}

Cache defines the interface for all cache implementations.

func NewMemCache

func NewMemCache() (Cache, error)

NewMemCache ...

func NewRedisCache

func NewRedisCache(conf *config.API) (Cache, error)

NewRedisCache ...

Jump to

Keyboard shortcuts

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