Documentation ¶
Index ¶
- type CacheAside
- type FetchSource
- type FetchSourceHash
- type Fetcher
- type GenCacheHashField
- type GenCacheKey
- type HFetcher
- func (hf *HFetcher) HDel(ctx context.Context, key string) error
- func (hf *HFetcher) HGet(ctx context.Context, key, field string, res interface{}, extra ...interface{}) (bool, error)
- func (hf *HFetcher) HMDel(ctx context.Context, key string, fields ...string) error
- func (hf *HFetcher) HMGet(ctx context.Context, key string, fields []string, res interface{}, ...) error
- type Logger
- type OptFn
- type Option
- type Strategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheAside ¶
type CacheAside struct {
// contains filtered or unexported fields
}
func NewCacheAside ¶
func NewHCacheAside ¶
func (*CacheAside) Fetch ¶
func (ca *CacheAside) Fetch(fetchSource FetchSource, genCacheKey GenCacheKey, opts ...OptFn) *Fetcher
func (*CacheAside) HFetch ¶ added in v1.0.4
func (ca *CacheAside) HFetch(fetchSource FetchSourceHash, genCacheHashField GenCacheHashField, opts ...OptFn) *HFetcher
type FetchSource ¶
type FetchSourceHash ¶ added in v1.0.4
type Fetcher ¶ added in v1.0.4
type Fetcher struct {
// contains filtered or unexported fields
}
type GenCacheHashField ¶ added in v1.0.4
type GenCacheKey ¶
type HFetcher ¶ added in v1.0.4
type HFetcher struct {
// contains filtered or unexported fields
}
type OptFn ¶ added in v1.0.4
type OptFn func(opt *Option)
func WithLogger ¶ added in v1.0.4
func WithStrategy ¶ added in v1.0.4
func WithcacheGetErrHandler ¶ added in v1.0.4
Click to show internal directories.
Click to hide internal directories.