cache

package
v0.1.72 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanPolicyAction added in v0.1.2

type CleanPolicyAction actions.Action

func (*CleanPolicyAction) Run added in v0.1.2

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

清理

func (*CleanPolicyAction) RunPost added in v0.1.2

func (this *CleanPolicyAction) RunPost(params struct {
	Filename string
})

执行清理

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

	Capacity                  float64
	CapacityUnit              string
	Life                      int
	LifeUnit                  string
	StatusList                []int
	MaxSize                   float64
	MaxSizeUnit               string
	SkippedCacheControlValues []string
	SkipSetCookie             bool
	EnableRequestCachePragma  bool

	FileDir string

	RedisNetwork  string
	RedisHost     string
	RedisPort     int
	RedisSock     string
	RedisPassword string

	LeveldbDir 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 PolicyAction added in v0.1.2

type PolicyAction actions.Action

func (*PolicyAction) Run added in v0.1.2

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

缓存策略详情

type StatPolicyAction added in v0.1.2

type StatPolicyAction actions.Action

func (*StatPolicyAction) Run added in v0.1.2

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

统计

func (*StatPolicyAction) RunPost added in v0.1.2

func (this *StatPolicyAction) RunPost(params struct {
	Filename string
})

获取统计数据

type TestPolicyAction added in v0.1.2

type TestPolicyAction actions.Action

func (*TestPolicyAction) Run added in v0.1.2

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

测试缓存策略

func (*TestPolicyAction) RunPost added in v0.1.2

func (this *TestPolicyAction) RunPost(params struct {
	Filename string
	Action   string
	Key      string
	Value    string
})

提交测试

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

	Capacity                  float64
	CapacityUnit              string
	Life                      int
	LifeUnit                  string
	StatusList                []int
	MaxSize                   float64
	MaxSizeUnit               string
	SkippedCacheControlValues []string
	SkipSetCookie             bool
	EnableRequestCachePragma  bool

	FileDir string

	RedisNetwork  string
	RedisHost     string
	RedisPort     int
	RedisSock     string
	RedisPassword string

	LeveldbDir string

	Must *actions.Must
})

提交保存

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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