Documentation ¶
Index ¶
- Constants
- func AddCache(data string, timeout ...time.Duration) (uid string, err error)
- func DeleteCache(uid string) (err error)
- func GetCache(uid string) (string, error)
- func GetCacheData(uid string, data interface{}) (err error)
- func SHA1(input string) string
- func SHA1Byte(input []byte) string
- func SetCache(uid string, data string, timeout ...time.Duration) (err error)
- func SetCacheData(uid string, data interface{}) (err error)
Constants ¶
View Source
const (
CacheExpiresIn = 1 * time.Hour
)
View Source
const (
EXPIRESIN = 24 * time.Hour
)
EXPIRESIN 会话有效时间
Variables ¶
This section is empty.
Functions ¶
func DeleteCache ¶
func GetCacheData ¶
func SetCacheData ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.