Module: NexusMods::CacheableApi
- Included in:
- ApiClient
- Defined in:
- lib/nexus_mods/cacheable_api.rb
Overview
Provide cacheable helpers for API methods that can be invalidated with an expiry time in seconds
Defined Under Namespace
Modules: CacheableHelpers
Class Method Summary collapse
-
.included(base) ⇒ Object
Callback when the module is included in another module/class.
Class Method Details
.included(base) ⇒ Object
Callback when the module is included in another module/class
- Parameters
-
base (Class or Module): The class/module including this module
14 15 16 17 |
# File 'lib/nexus_mods/cacheable_api.rb', line 14 def self.included(base) base.include CacheableWithExpiry base.extend CacheableApi::CacheableHelpers end |