Documentation
¶
Index ¶
- type CachePlugin
- func (p *CachePlugin) Clear(ctx context.Context) error
- func (p *CachePlugin) Decrement(ctx context.Context, key string) (int64, error)
- func (p *CachePlugin) Delete(ctx context.Context, key string) error
- func (p *CachePlugin) Exists(ctx context.Context, key string) (bool, error)
- func (p *CachePlugin) Get(ctx context.Context, key string, value interface{}) error
- func (p *CachePlugin) GetOrSet(ctx context.Context, key string, value interface{}, ttl time.Duration, ...) error
- func (p *CachePlugin) Increment(ctx context.Context, key string) (int64, error)
- func (p *CachePlugin) Set(ctx context.Context, key string, value interface{}, ttl time.Duration) error
- func (p *CachePlugin) SetNX(ctx context.Context, key string, value interface{}, ttl time.Duration) (bool, error)
- func (p *CachePlugin) Shutdown() error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachePlugin ¶
type CachePlugin struct {
// contains filtered or unexported fields
}
func New ¶
func New(app *forge.Application, config *Config) (*CachePlugin, error)
func (*CachePlugin) Get ¶
func (p *CachePlugin) Get(ctx context.Context, key string, value interface{}) error
func (*CachePlugin) Shutdown ¶
func (p *CachePlugin) Shutdown() error
Click to show internal directories.
Click to hide internal directories.