Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICache ¶
type ICache interface { Get(key string) (any, bool) Set(key string, value any, expire time.Duration) bool SetWithCost(key string, value any, cost int64, expire time.Duration) bool Del(key string) }
var (
Cache ICache
)
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Default implemented cache strategy: LRU
Click to show internal directories.
Click to hide internal directories.