Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultMaxConnections int = 2000 // throttle cache requests to 2000 QPS DefaultCacheMode string = "rw" // rw (Read/Write), w (Ready Only) DefaultCachePath string = "sniperkit/shared/data/cache/" )
View Source
const ( PluginName string = "sniperkit-httpcache" PluginVersion string = "0.0.1" )
Variables ¶
View Source
var ( DefaultCacheDir string = "~" DefaultCacheDuration time.Duration = 30 * 24 * time.Hour // 30 Day DefaultCacheDurationLong time.Duration = 365 * 24 * time.Hour // 1 Year )
View Source
var ( // ErrCacheKeyNotFound is returned whenever there's a cache miss ErrCacheKeyNotFound = errors.New("Cache key not found, cache miss") )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.