Class: Shutl::Auth::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/shutl/auth/authenticated_request.rb

Instance Method Summary collapse

Constructor Details

#initializeCache

Returns a new instance of Cache.



6
7
8
# File 'lib/shutl/auth/authenticated_request.rb', line 6

def initialize
  @cache = {}
end

Instance Method Details

#read(key) ⇒ Object



10
11
12
# File 'lib/shutl/auth/authenticated_request.rb', line 10

def read(key)
  @cache[key]
end

#write(key, value) ⇒ Object



14
15
16
# File 'lib/shutl/auth/authenticated_request.rb', line 14

def write(key, value)
  @cache[key] = value
end