cache

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultExpirationTime = 15 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	GetUserProfile(name string, isCN bool) (*leetcode.UserProfile, error)
	SaveUserProfile(name string, isCN bool, value *leetcode.UserProfile) error
	SaveBadge(name string, body []byte) error
	GetBadge(name string) ([]byte, error)
}

type CacheType

type CacheType string
const (
	CacheRedis  CacheType = "redis"
	CacheMemory CacheType = "memory"
)

func (CacheType) String

func (c CacheType) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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