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.



29
30
31
# File 'lib/shutl/auth/authenticated_request.rb', line 29

def initialize
  @cache = {}
end

Instance Method Details

#read(key) ⇒ Object



33
34
35
# File 'lib/shutl/auth/authenticated_request.rb', line 33

def read(key)
  @cache[key]
end

#write(key, value) ⇒ Object



37
38
39
# File 'lib/shutl/auth/authenticated_request.rb', line 37

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