cache

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package cache ... do connect to redis with RedisConfig ref to common or other where? declare interfaces to use cahce in common

Index

Constants

View Source
const (
	// CachePluginKey = "plugin.cache"
	CachePluginKey = "plugin.cache"
	// CachePageKey   = "plugin.cache.page"
	CachePageKey = "plugin.cache.page"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

Cache to serve page cache ...

func New

func New(store presistence.Store, rules []rule.Nocacher) *Cache

New PluginStore ...

func (*Cache) Enable added in v1.1.0

func (c *Cache) Enable(enabled bool)

Enable ...

func (*Cache) Enabled added in v1.1.0

func (c *Cache) Enabled() bool

Enabled ...

func (*Cache) Handle

func (c *Cache) Handle(ctx *plugin.Context)

Handle implement the interface Plugin [fixed] TOFIX: cannot set cache to response

func (*Cache) Load added in v1.1.0

func (c *Cache) Load(rules []rule.Nocacher)

Load no cache rule settings, if the URI macthed any rule in rules then abort cache plugin processing

func (*Cache) Name added in v1.1.0

func (c *Cache) Name() string

Name ...

func (*Cache) Status added in v1.1.0

func (c *Cache) Status() plugin.PlgStatus

Status ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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