Documentation
¶
Index ¶
- type GoCache
- func (r *GoCache) Get(c context.Context, key string, _ any) (any, error)
- func (r *GoCache) Set(c context.Context, key string, value any, ttls time.Duration) error
- func (o *GoCache) Setup(c context.Context, deps ...gobs.IService) error
- func (r *GoCache) Wrap(c context.Context, key string, _ any, callback func() (any, error), ...) (res any, err error)
- type ICache
- type Redis
- func (r *Redis) Get(c context.Context, key string, model any) (any, error)
- func (o *Redis) Init(ctx context.Context) (*gobs.ServiceLifeCycle, error)
- func (r *Redis) Set(c context.Context, key string, value any, ttls time.Duration) error
- func (o *Redis) Setup(c context.Context, deps ...gobs.IService) error
- func (o *Redis) Start(ctx context.Context) error
- func (o *Redis) Stop(ctx context.Context) error
- func (r *Redis) Wrap(c context.Context, key string, model any, callback func() (any, error), ...) (res any, err error)
- type RedisConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoCache ¶
type GoCache struct {
// contains filtered or unexported fields
}
type ICache ¶
Click to show internal directories.
Click to hide internal directories.