Documentation ¶
Index ¶
- func Inject[T any](p do.Provider[T])
- func Use[T any]() T
- type CacheSvc
- type DataSvc
- func (s *DataSvc[M]) GetLocal(expiration time.Duration, conds ...any) (*M, error)
- func (s *DataSvc[M]) GetRedis(expiration time.Duration, conds ...any) (*M, error)
- func (s *DataSvc[M]) ListLocal(expiration time.Duration, conds ...any) ([]M, error)
- func (s *DataSvc[M]) ListRedis(expiration time.Duration, conds ...any) ([]M, error)
- type Svc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheSvc ¶
type CacheSvc struct { Local *cache.Cache Redis *redis.Client }
func (*CacheSvc) ListCaches ¶
Click to show internal directories.
Click to hide internal directories.