cache

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePolicyAction

type CreatePolicyAction actions.Action

func (*CreatePolicyAction) Run

func (this *CreatePolicyAction) Run(params struct{})

缓存缓存策略

func (*CreatePolicyAction) RunPost

func (this *CreatePolicyAction) RunPost(params struct {
	Name string
	Key  string
	Type string

	IsAdvanced   bool
	Capacity     float64
	CapacityUnit string
	Life         int
	LifeUnit     string
	StatusList   []int
	MaxSize      float64
	MaxSizeUnit  string

	Must *actions.Must
})

type DeletePolicyAction

type DeletePolicyAction actions.Action

func (*DeletePolicyAction) Run

func (this *DeletePolicyAction) Run(params struct {
	Filename string
})

删除缓存策略

type Helper

type Helper struct {
}

func (*Helper) BeforeAction

func (this *Helper) BeforeAction(action *actions.ActionObject)

缓存相关Helper

type IndexAction

type IndexAction actions.Action

func (*IndexAction) Run

func (this *IndexAction) Run(params struct{})

缓存首页

type UpdatePolicyAction

type UpdatePolicyAction actions.Action

func (*UpdatePolicyAction) Run

func (this *UpdatePolicyAction) Run(params struct {
	Filename string
})

修改缓存策略

func (*UpdatePolicyAction) RunPost

func (this *UpdatePolicyAction) RunPost(params struct {
	Filename string
	Name     string
	Key      string
	Type     string

	IsAdvanced   bool
	Capacity     float64
	CapacityUnit string
	Life         int
	LifeUnit     string
	StatusList   []int
	MaxSize      float64
	MaxSizeUnit  string

	Must *actions.Must
})

Jump to

Keyboard shortcuts

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