Module: NexusMods::CacheableWithExpiry

Defined in:
lib/nexus_mods/cacheable_with_expiry.rb

Overview

Add cacheable properties that can be expired using time in seconds

Defined Under Namespace

Modules: CacheableHelpers

Class Method Summary collapse

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



13
14
15
16
# File 'lib/nexus_mods/cacheable_with_expiry.rb', line 13

def self.included(base)
  base.include Cacheable
  base.extend CacheableWithExpiry::CacheableHelpers
end