Module: ActiveSupport::Cache::SerializerWithFallback::PassthroughWithFallback

Extended by:
PassthroughWithFallback
Includes:
ActiveSupport::Cache::SerializerWithFallback
Included in:
PassthroughWithFallback
Defined in:
lib/active_support/cache/serializer_with_fallback.rb

Instance Method Summary collapse

Methods included from ActiveSupport::Cache::SerializerWithFallback

[], #load

Instance Method Details

#_load(entry) ⇒ Object



57
58
59
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 57

def _load(entry)
  entry
end

#dump(entry) ⇒ Object



49
50
51
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 49

def dump(entry)
  entry
end

#dump_compressed(entry, threshold) ⇒ Object



53
54
55
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 53

def dump_compressed(entry, threshold)
  entry.compressed(threshold)
end

#dumped?(dumped) ⇒ Boolean

Returns:

  • (Boolean)


61
62
63
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 61

def dumped?(dumped)
  dumped.is_a?(Cache::Entry)
end