Module: Dry::Core::Cache::Methods

Defined in:
lib/dry/core/cache.rb

Overview

Instance methods

Instance Method Summary collapse

Instance Method Details

#fetch_or_store { ... } ⇒ Object

Delegates call to the class-level method

Parameters:

  • args (Array<Object>)

    List of hashable objects

Yields:

  • An arbitrary block

Returns:

  • (Object)

    block’s return value



63
64
65
# File 'lib/dry/core/cache.rb', line 63

def fetch_or_store(...)
  self.class.fetch_or_store(...)
end