Sha256: b01ba725008a4f0d2189a441dcbd9fcc9c449f45d48a412508766592eaf33e50

Contents?: true

Size: 402 Bytes

Versions: 17

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

require "fmrest/token_store/base"

module FmRest
  module TokenStore
    class Memory < Base
      def initialize(*args)
        super
        @@tokens ||= {}
      end

      def delete(key)
        @@tokens.delete(key)
      end

      def load(key)
        @@tokens[key]
      end

      def store(key, value)
        @@tokens[key] = value
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
fmrest-core-0.26.2 lib/fmrest/token_store/memory.rb
fmrest-core-0.26.1 lib/fmrest/token_store/memory.rb
fmrest-core-0.26.1.rc1 lib/fmrest/token_store/memory.rb
fmrest-core-0.26.0 lib/fmrest/token_store/memory.rb
fmrest-core-0.26.0.rc1 lib/fmrest/token_store/memory.rb
fmrest-core-0.25.0.rc1 lib/fmrest/token_store/memory.rb
fmrest-core-0.24.0 lib/fmrest/token_store/memory.rb
fmrest-core-0.24.0.rc1 lib/fmrest/token_store/memory.rb
fmrest-core-0.23.1 lib/fmrest/token_store/memory.rb
fmrest-core-0.23.0 lib/fmrest/token_store/memory.rb
fmrest-core-0.22.0 lib/fmrest/token_store/memory.rb
fmrest-core-0.21.0 lib/fmrest/token_store/memory.rb
fmrest-core-0.21.0.rc1 lib/fmrest/token_store/memory.rb
fmrest-core-0.20.0 lib/fmrest/token_store/memory.rb
fmrest-core-0.20.0.rc1 lib/fmrest/token_store/memory.rb
fmrest-core-0.19.0 lib/fmrest/token_store/memory.rb
fmrest-core-0.19.0.rc1 lib/fmrest/token_store/memory.rb