Class: Rhinestone::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/rhinestone/server.rb

Instance Method Summary collapse

Instance Method Details

#get(path) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/rhinestone/server.rb', line 5

def get(path)
  response = cache.get(path)

  unless response
    response = fetch_response(path)
  else
    later.run{ fetch_response(path) }
  end

  return response
end