Sha256: de26db72a68b91a1c671102b780803b08de4768e2ec314bb6109d2e9c1624758

Contents?: true

Size: 555 Bytes

Versions: 11

Compression:

Stored size: 555 Bytes

Contents

# frozen_string_literal: true

require 'active_support'
require 'active_support/per_thread_registry'

module DHS
  module Interceptors
    module RequestCycleCache
      extend ActiveSupport::Concern
      class ThreadRegistry
        # Using ActiveSupports PerThreadRegistry to be able to support Active Support v4.
        # Will switch to thread_mattr_accessor (which comes with Activesupport) when we dropping support for Active Support v4.
        extend ActiveSupport::PerThreadRegistry
        attr_accessor :request_id
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dhs-1.5.0 lib/dhs/interceptors/request_cycle_cache/thread_registry.rb
dhs-1.4.2 lib/dhs/interceptors/request_cycle_cache/thread_registry.rb
dhs-1.4.1 lib/dhs/interceptors/request_cycle_cache/thread_registry.rb
dhs-1.4.0 lib/dhs/interceptors/request_cycle_cache/thread_registry.rb
dhs-1.3.0 lib/dhs/interceptors/request_cycle_cache/thread_registry.rb
dhs-1.2.0 lib/dhs/interceptors/request_cycle_cache/thread_registry.rb
dhs-1.1.0 lib/dhs/interceptors/request_cycle_cache/thread_registry.rb
dhs-1.0.3 lib/dhs/interceptors/request_cycle_cache/thread_registry.rb
dhs-1.0.2 lib/dhs/interceptors/request_cycle_cache/thread_registry.rb
dhs-1.0.1 lib/dhs/interceptors/request_cycle_cache/thread_registry.rb
dhs-1.0.0 lib/dhs/interceptors/request_cycle_cache/thread_registry.rb