Involved Source Files
Package cache implements a redis-based page cache
for pkgsite.
Package-Level Type Names (only one, which is exported)
/* sort exporteds by: | */
Cache is a Redis-based cache.
client*redis.Client
Clear deletes all entries from the cache.
Delete deletes the given keys. It does not return an error if a key does not
exist.
DeletePrefix deletes all keys beginning with prefix.
Get returns the value for key, or nil if the key does not exist.
Put inserts the key with the given data and time-to-live.
func New(client *redis.Client) *Cache
Package-Level Functions (only one, which is exported)
New creates a new Cache using the given Redis client.
Package-Level Variables (only one, which is unexported)
The "count" argument to the Redis SCAN command, which is a hint for how much
work to perform.
Also used as the batch size for Delete calls in DeletePrefix.
var for testing.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.