constants

package
v0.0.0-...-61f2a12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL