evalphobia/eurekache

View on GitHub
rediscache/redis.go

Summary

Maintainability
A
1 hr
Test Coverage

Method RedisCache.getGobItem has 5 return statements (exceeds 4 allowed).
Open

func (c *RedisCache) getGobItem(key string) (*eurekache.Item, bool) {
    conn, err := c.conn()
    if err != nil {
        return nil, false
    }
Severity: Major
Found in rediscache/redis.go - About 35 mins to fix

    Method RedisCache.SetExpire has 5 return statements (exceeds 4 allowed).
    Open

    func (c *RedisCache) SetExpire(key string, data interface{}, ttl int64) error {
        conn, err := c.conn()
        if err != nil {
            return err
        }
    Severity: Major
    Found in rediscache/redis.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status