Versions in this module Expand all Collapse all v0 v0.1.1 Apr 30, 2025 v0.1.0 Apr 28, 2025 Changes in this version + type CachePlugin struct + func New(app *forge.Application, config *Config) (*CachePlugin, error) + 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 struct + DB int + Host string + Password string + Port int + Prefix string