Documentation ¶
Index ¶
- func MemCacheDelete(ctx context.Context, cc *cache.Cache, keyFmt string, args ...interface{}) bool
- func MemCacheFunc(ctx context.Context, cc *cache.Cache, expire time.Duration, f interface{}, ...) (interface{}, error)
- func RdsCacheFunc(ctx context.Context, rds redis.UniversalClient, rdsExpire int, f interface{}, ...) (interface{}, error)
- func RdsCacheMultiFunc(ctx context.Context, rds redis.UniversalClient, rdsExpire int, ...) (interface{}, error)
- func RdsDeleteCache(ctx context.Context, rds redis.UniversalClient, keyFmt string, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MemCacheDelete ¶
func MemCacheFunc ¶
func RdsCacheFunc ¶
func RdsCacheMultiFunc ¶
func RdsCacheMultiFunc(ctx context.Context, rds redis.UniversalClient, rdsExpire int, fMulti interface{}, keyFmt string, args []string) (interface{}, error)
通用场景过于复杂,限定参数,返回类型为 map[string]*struct fMulti示例: func getThingsByIds(ctx context.Context, ids []string) (map[string]*Thing, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.