cache

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanPolicyAction

type CleanPolicyAction struct {
	actionutils.ParentAction
}

func (*CleanPolicyAction) Run

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

清理

func (*CleanPolicyAction) RunPost

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
	FileAutoCreate bool

	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

type PolicyAction struct {
	actionutils.ParentAction
}

func (*PolicyAction) Run

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

缓存策略详情

type RefreshPolicyAction

type RefreshPolicyAction struct {
	actionutils.ParentAction
}

func (*RefreshPolicyAction) RunGet

func (this *RefreshPolicyAction) RunGet(params struct {
	Filename string
})

func (*RefreshPolicyAction) RunPost

func (this *RefreshPolicyAction) RunPost(params struct {
	Filename string
	Prefixes string
	Must     *actions.Must
})

type StatPolicyAction

type StatPolicyAction struct {
	actionutils.ParentAction
}

func (*StatPolicyAction) Run

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

统计

func (*StatPolicyAction) RunPost

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

获取统计数据

type TestPolicyAction

type TestPolicyAction struct {
	actionutils.ParentAction
}

func (*TestPolicyAction) Run

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

测试缓存策略

func (*TestPolicyAction) RunPost

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

提交测试

type UpdatePolicyAction

type UpdatePolicyAction struct {
	actionutils.ParentAction
}

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
	FileAutoCreate bool

	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