Documentation ¶ Index ¶ func New(opt ...func(conf *Config)) znet.HandlerFunc func QueryKey(c *znet.Context) (key string) type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(opt ...func(conf *Config)) znet.HandlerFunc func QueryKey ¶ func QueryKey(c *znet.Context) (key string) Types ¶ type Config ¶ type Config struct { zcache.Option // Custom key and expiration, default is the request path, key is empty not cached , 0 is the default expiration Custom func(c *znet.Context) (key string, expiration time.Duration) } Config configuration Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.