guibranco/CrispyWaffle

View on GitHub
Src/CrispyWaffle.Redis/Cache/RedisCacheRepository.cs

Summary

Maintainability
B
4 hrs
Test Coverage

File RedisCacheRepository.cs has 285 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System;
using System.Collections.Generic;
using System.Globalization;
using CrispyWaffle.Cache;
using CrispyWaffle.Log;
Severity: Minor
Found in Src/CrispyWaffle.Redis/Cache/RedisCacheRepository.cs - About 2 hrs to fix

    Method Get has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public T Get<T>(string key, string subKey)
            {
                try
                {
                    if (
    Severity: Minor
    Found in Src/CrispyWaffle.Redis/Cache/RedisCacheRepository.cs - About 1 hr to fix

      Method SetToDatabase has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

                  T value,
                  string key,
                  int databaseNumber,
                  TimeSpan? ttl = null,
                  bool fireAndForget = false
      Severity: Minor
      Found in Src/CrispyWaffle.Redis/Cache/RedisCacheRepository.cs - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status