Documentation ¶
Index ¶
- func Inject[T any](p do.Provider[T])
- func Use[T any]() T
- type CacheSvc
- type Svc
- func (s *Svc[M]) GetFullKey(keys ...any) string
- func (s *Svc[M]) GetLocal(expiration time.Duration, conds ...any) (*M, error)
- func (s *Svc[M]) GetRedis(expiration time.Duration, conds ...any) (*M, error)
- func (s *Svc[M]) ListLocal(expiration time.Duration, conds ...any) ([]M, error)
- func (s *Svc[M]) ListRedis(expiration time.Duration, conds ...any) ([]M, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheSvc ¶ added in v1.0.17
type CacheSvc struct { Local *cache.Cache // 本地 Redis *redis.Client // 远程 }
缓存服务
func (*CacheSvc) ListCaches ¶ added in v1.0.17
列举缓存集合
Click to show internal directories.
Click to hide internal directories.