Documentation ¶
Index ¶
Constants ¶
View Source
const NotExpireTTL = time.Hour * 24 * 365 * 10 //不过期时间
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCache ¶
type GCache struct {
// contains filtered or unexported fields
}
func NewGCache ¶
func NewGCache(opts ...GCacheOption) *GCache
type GCacheOption ¶
type GCacheOption func(g *GCache)
func WithMaxSize ¶
func WithMaxSize(size int) GCacheOption
type GCacheOptions ¶
type GCacheOptions []GCacheOption
Click to show internal directories.
Click to hide internal directories.