lib/mini_profiler/storage/redis_store.rb
Class RedisStore
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class RedisStore < AbstractStore
attr_reader :prefix
EXPIRES_IN_SECONDS = 60 * 60 * 24
File redis_store.rb
has 287 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'digest'
require 'securerandom'
module Rack
class MiniProfiler
Method push_snapshot
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def push_snapshot(page_struct, group_name, config)
group_zset_key = group_snapshot_zset_key(group_name)
group_hash_key = group_snapshot_hash_key(group_name)
overview_zset_key = snapshot_overview_zset_key
Method cleanup_corrupt_snapshots
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def cleanup_corrupt_snapshots(corrupt_snapshots_ids, group_name)
group_hash_key = group_snapshot_hash_key(group_name)
group_zset_key = group_snapshot_zset_key(group_name)
overview_zset_key = snapshot_overview_zset_key
lua = <<~LUA