Sha256: cfa19a919d3961f1912c8f43de817e157e3dba63c4c166520cf650581675c406

Contents?: true

Size: 414 Bytes

Versions: 11

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

require 'elastic_apm/util/lru_cache'

module ElasticAPM
  class Stacktrace
    # A basic LRU Cache
    # @api private
    class LineCache
      class << self
        def cache
          @cache ||= Util::LruCache.new
        end

        def get(*key)
          cache[key]
        end

        def set(*key, value)
          cache[key] = value
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
elastic-apm-0.6.2 lib/elastic_apm/stacktrace/line_cache.rb
elastic-apm-0.6.1 lib/elastic_apm/stacktrace/line_cache.rb
elastic-apm-0.5.1 lib/elastic_apm/stacktrace/line_cache.rb
elastic-apm-0.5.0 lib/elastic_apm/stacktrace/line_cache.rb
elastic-apm-0.4.5 lib/elastic_apm/stacktrace/line_cache.rb
elastic-apm-0.4.4 lib/elastic_apm/stacktrace/line_cache.rb
elastic-apm-0.4.3 lib/elastic_apm/stacktrace/line_cache.rb
elastic-apm-0.4.2 lib/elastic_apm/stacktrace/line_cache.rb
elastic-apm-0.4.1 lib/elastic_apm/stacktrace/line_cache.rb
elastic-apm-0.4.0 lib/elastic_apm/stacktrace/line_cache.rb
elastic-apm-0.3.0 lib/elastic_apm/stacktrace/line_cache.rb