lib/loquor/client.rb in loquor-0.5.3 vs lib/loquor/client.rb in loquor-0.5.4
- old
+ new
@@ -4,11 +4,12 @@
def initialize
@config = Configuration.new
end
- def get(url)
+ def get(url, cache=nil)
deps = {config: @config}
+ deps[:should_cache] = cache if cache
HttpAction::Get.get(url, deps)
end
def put(url, payload)
deps = {config: @config}