package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 12, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Config Example
{
order cache first
cache {
type redis
host 127.0.0.1:6379 # Redis IP/Port
}
}
http://localhost:9090
cache {
expire 120 # Cache expiration in seconds
method post # HTTP Methods you want to bypass
bypass wp-admin wp-login.php system # URIs - WordPress and ExpressionEngine
# cookie uses regular expressions
# cookie exp_sessionid # ExpressionEngine
cookie wordpress_logged_in_.* # WordPress
}
reverse_proxy localhost:8080
Documentation
¶
type Bypass struct {
Paths []string `json:"paths"`
Methods []string `json:"methods"`
Cookies []string `json:"cookies"`
}
Bypass sets what should be bypassed by the cache.
type Config struct {
Type string `json:"type,omitempty"`
Host string `json:"host,omitempty"`
Expire int `json:"expire"`
Bypass Bypass `json:"bypass"`
CookieRegexp []*regexp.Regexp
}
Config options
Source Files
¶
Click to show internal directories.
Click to hide internal directories.