Class: Marty::CacheAdapters::McflyRubyCache

Inherits:
Delorean::Cache::Adapters::RubyCache
  • Object
show all
Defined in:
lib/marty/cache_adapters/mcfly_ruby_cache.rb

Instance Method Summary collapse

Instance Method Details

#cache_item?(klass:, method_name:, args:) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/marty/cache_adapters/mcfly_ruby_cache.rb', line 4

def cache_item?(klass:, method_name:, args:)
  !Mcfly.is_infinity(args&.first)
end