cache.go
Method cache.MGet
has 62 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (c *cache) MGet(ctx context.Context, prefix string, keys ...string) (Result, error) {
cfg, ok := c.configs[prefix]
if !ok {
return nil, ErrPfxNotRegistered
}
Method cache.MGet
has 9 return statements (exceeds 4 allowed). Open
Open
func (c *cache) MGet(ctx context.Context, prefix string, keys ...string) (Result, error) {
cfg, ok := c.configs[prefix]
if !ok {
return nil, ErrPfxNotRegistered
}
Method cache.GetByFunc
has 9 return statements (exceeds 4 allowed). Open
Open
func (c *cache) GetByFunc(ctx context.Context, prefix, key string, container interface{}, getter OneTimeGetterFunc) error {
cfg, ok := c.configs[prefix]
if !ok {
return ErrPfxNotRegistered
}