Module: ApiResponseCache
- Defined in:
- lib/api-response-cache.rb,
lib/api_response_cache/config.rb,
lib/api_response_cache/actions.rb,
lib/api_response_cache/version.rb,
lib/api_response_cache/response_cache.rb,
lib/api_response_cache/api_cache_handler.rb
Defined Under Namespace
Modules: Actions
Classes: Config
Constant Summary
collapse
- VERSION =
"0.4.3"
Class Method Summary
collapse
Class Method Details
.clear ⇒ Object
20
21
22
|
# File 'lib/api-response-cache.rb', line 20
def self.clear
Rails.cache.delete_matched('api-response-cache/*')
end
|
.configuration ⇒ Object
16
17
18
|
# File 'lib/api-response-cache.rb', line 16
def self.configuration
@configuration ||= ApiResponseCache::Config.new
end
|
12
13
14
|
# File 'lib/api-response-cache.rb', line 12
def self.configure
yield configuration
end
|