hmemcacheplugin

package
v1.1.44 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemCachePlugin

type MemCachePlugin struct {
	core.PluginConf

	ExpireDuration  int
	CleanupDuration int
}

type Plugin

type Plugin struct {
	core.BasePlugin
	// contains filtered or unexported fields
}

func New

func New() *Plugin

func (*Plugin) Capability

func (this *Plugin) Capability() htypes.Any

func (*Plugin) Clear

func (this *Plugin) Clear(bucket string) *cache.Cache

func (*Plugin) Config

func (this *Plugin) Config() core.IEntityConf

func (*Plugin) EntityStub

func (this *Plugin) EntityStub() *core.EntityStub

func (*Plugin) GetCache

func (this *Plugin) GetCache(bucket string) *cache.Cache

func (*Plugin) GetValue

func (this *Plugin) GetValue(bucket, key string) (interface{}, bool)

func (*Plugin) Open

func (this *Plugin) Open(s core.IServer, ins core.IPlugin) *herrors.Error

func (*Plugin) RemoveValue

func (this *Plugin) RemoveValue(bucket, key string)

func (*Plugin) Revoke

func (this *Plugin) Revoke(bucket, key string)

func (*Plugin) SetValue

func (this *Plugin) SetValue(bucket, key string, val interface{}, duration ...time.Duration)

Jump to

Keyboard shortcuts

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