cache

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 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) Handle

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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