Welcome to mirror list, hosted at ThFree Co, Russian Federation.

process_memory_cache.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5e8578711b228d60131853f8fe3ee631c831f5aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Gitlab
  class ProcessMemoryCache
    # ActiveSupport::Cache::MemoryStore is thread-safe:
    # https://github.com/rails/rails/blob/2f1fefe456932a6d7d2b155d27b5315c33f3daa1/activesupport/lib/active_support/cache/memory_store.rb#L19
    @cache = ActiveSupport::Cache::MemoryStore.new

    def self.cache_backend
      @cache
    end
  end
end