Sha256: e9c7788611ea5c1b3a701baa54a71454b30f3ff8e1ed59b7222fd46ac0fea90e

Contents?: true

Size: 273 Bytes

Versions: 6

Compression:

Stored size: 273 Bytes

Contents

module Marty
  module CacheAdapters
    class McflyRubyCache < ::Delorean::Cache::Adapters::RubyCache
      def cache_item?(klass:, method_name:, args:)
        ts = args && args.first

        return false if Mcfly.is_infinity(ts)
        true
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
marty-2.5.2 lib/marty/cache_adapters/mcfly_ruby_cache.rb
marty-2.5.1 lib/marty/cache_adapters/mcfly_ruby_cache.rb
marty-2.5.0 lib/marty/cache_adapters/mcfly_ruby_cache.rb
marty-2.4.9 lib/marty/cache_adapters/mcfly_ruby_cache.rb
marty-2.4.8 lib/marty/cache_adapters/mcfly_ruby_cache.rb
marty-2.4.7 lib/marty/cache_adapters/mcfly_ruby_cache.rb