You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: temporarily_allow.rb
    path of file: ./repos/gitlabhq/lib/gitlab
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module TemporarilyAllow
    TEMPORARILY_ALLOW_MUTEX = Mutex.new

    def temporarily_allow(
    
    def temporarily_allow_add(key, value)
      if Gitlab::SafeRequestStore.active?
        temporarily_allow_request_store[key] += value
      else
        TEMPORARILY_ALLOW_MUTEX.synchronize do
          temporarily_allow_ivar[key] += value
        end
      end