cache

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanAction

type CleanAction struct {
	actionutils.ParentAction
}

func (*CleanAction) Init

func (this *CleanAction) Init()

func (*CleanAction) RunGet

func (this *CleanAction) RunGet(params struct {
	CachePolicyId int64
})

func (*CleanAction) RunPost

func (this *CleanAction) RunPost(params struct {
	CachePolicyId int64
	ClusterId     int64

	Must *actions.Must
})

type CountAction

type CountAction struct {
	actionutils.ParentAction
}

计算可用缓存策略数量

func (*CountAction) RunPost

func (this *CountAction) RunPost(params struct{})

type CreatePopupAction

type CreatePopupAction struct {
	actionutils.ParentAction
}

func (*CreatePopupAction) Init

func (this *CreatePopupAction) Init()

func (*CreatePopupAction) RunGet

func (this *CreatePopupAction) RunGet(params struct{})

func (*CreatePopupAction) RunPost

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

	// file
	FileDir                string
	FileMemoryCapacityJSON []byte
	FileOpenFileCacheMax   int
	FileEnableSendfile     bool
	FileMinFreeSizeJSON    []byte

	CapacityJSON         []byte
	MaxSizeJSON          []byte
	FetchTimeoutJSON     []byte
	SyncCompressionCache bool
	EnableMMAP           bool

	Description string
	IsOn        bool

	Must *actions.Must
})

type DeleteAction

type DeleteAction struct {
	actionutils.ParentAction
}

func (*DeleteAction) RunPost

func (this *DeleteAction) RunPost(params struct {
	CachePolicyId int64
})

type FetchAction added in v0.4.8

type FetchAction struct {
	actionutils.ParentAction
}

func (*FetchAction) Init added in v0.4.8

func (this *FetchAction) Init()

func (*FetchAction) RunGet added in v0.4.8

func (this *FetchAction) RunGet(params struct {
	CachePolicyId int64
})

func (*FetchAction) RunPost added in v0.4.8

func (this *FetchAction) RunPost(params struct {
	CachePolicyId int64
	ClusterId     int64
	Keys          string

	Must *actions.Must
})

type Helper

type Helper struct {
}

func NewHelper

func NewHelper() *Helper

func (*Helper) BeforeAction

func (this *Helper) BeforeAction(actionPtr actions.ActionWrapper)

type IndexAction

type IndexAction struct {
	actionutils.ParentAction
}

func (*IndexAction) Init

func (this *IndexAction) Init()

func (*IndexAction) RunGet

func (this *IndexAction) RunGet(params struct {
	ClusterId   int64
	Keyword     string
	StorageType string
})

type PolicyAction

type PolicyAction struct {
	actionutils.ParentAction
}

func (*PolicyAction) Init

func (this *PolicyAction) Init()

func (*PolicyAction) RunGet

func (this *PolicyAction) RunGet(params struct {
	CachePolicyId int64
})

type PurgeAction

type PurgeAction struct {
	actionutils.ParentAction
}

func (*PurgeAction) Init

func (this *PurgeAction) Init()

func (*PurgeAction) RunGet

func (this *PurgeAction) RunGet(params struct {
	CachePolicyId int64
})

func (*PurgeAction) RunPost

func (this *PurgeAction) RunPost(params struct {
	CachePolicyId int64
	ClusterId     int64
	KeyType       string
	Keys          string
	Must          *actions.Must
})

type SelectPopupAction

type SelectPopupAction struct {
	actionutils.ParentAction
}

func (*SelectPopupAction) Init

func (this *SelectPopupAction) Init()

func (*SelectPopupAction) RunGet

func (this *SelectPopupAction) RunGet(params struct{})

type StatAction

type StatAction struct {
	actionutils.ParentAction
}

func (*StatAction) Init

func (this *StatAction) Init()

func (*StatAction) RunGet

func (this *StatAction) RunGet(params struct {
	CachePolicyId int64
})

func (*StatAction) RunPost

func (this *StatAction) RunPost(params struct {
	CachePolicyId int64
	ClusterId     int64

	Must *actions.Must
})

type TestAction

type TestAction struct {
	actionutils.ParentAction
}

func (*TestAction) Init

func (this *TestAction) Init()

func (*TestAction) RunGet

func (this *TestAction) RunGet(params struct {
	CachePolicyId int64
})

type TestReadAction

type TestReadAction struct {
	actionutils.ParentAction
}

func (*TestReadAction) RunPost

func (this *TestReadAction) RunPost(params struct {
	ClusterId     int64
	CachePolicyId int64
	Key           string
})

type TestWriteAction

type TestWriteAction struct {
	actionutils.ParentAction
}

func (*TestWriteAction) RunPost

func (this *TestWriteAction) RunPost(params struct {
	ClusterId     int64
	CachePolicyId int64
	Key           string
	Value         string
})

type UpdateAction

type UpdateAction struct {
	actionutils.ParentAction
}

func (*UpdateAction) Init

func (this *UpdateAction) Init()

func (*UpdateAction) RunGet

func (this *UpdateAction) RunGet(params struct {
	CachePolicyId int64
})

func (*UpdateAction) RunPost

func (this *UpdateAction) RunPost(params struct {
	CachePolicyId int64

	Name string
	Type string

	// file
	FileDir                string
	FileMemoryCapacityJSON []byte
	FileOpenFileCacheMax   int
	FileEnableSendfile     bool
	FileMinFreeSizeJSON    []byte

	CapacityJSON         []byte
	MaxSizeJSON          []byte
	SyncCompressionCache bool
	FetchTimeoutJSON     []byte

	EnableMMAP bool

	Description string
	IsOn        bool

	RefsJSON []byte

	Must *actions.Must
})

type UpdateRefsAction added in v0.3.0

type UpdateRefsAction struct {
	actionutils.ParentAction
}

func (*UpdateRefsAction) Init added in v0.3.0

func (this *UpdateRefsAction) Init()

func (*UpdateRefsAction) RunPost added in v0.3.0

func (this *UpdateRefsAction) RunPost(params struct {
	CachePolicyId int64
	RefsJSON      []byte
})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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