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: cache.rb
    path of file: ./repos/gitlabhq/lib/gitlab/external_authorization
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module Exte
    
      def store(new_access, new_reason, new_refreshed_at)
        with_redis do |redis|
          redis.pipelined do |pipeline|
            pipeline.mapped_hmset(
              cache_key,
              {
                access: new_access.to_s,
                reason: new_reason.to_s,
                refreshed_at: new_refreshed_at.to_s
              }
            )

            pipeline.expire(cache_key, VALIDITY_TIME)
          end
        end
      end