Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultExpirationTime default expiration time 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
GetHistoryRecord(name string, isCN bool, start, end time.Time) ([]storage.HistoryRecord, error)
SaveHistoryRecord(name string, isCN bool, start, end time.Time, info []storage.HistoryRecord) error
SaveByteBody(name string, body []byte) error
GetByteBody(name string) ([]byte, error)
}
Cache cache
Click to show internal directories.
Click to hide internal directories.