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(*args) { ... } ⇒ 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



60
61
62
# File 'lib/dry/core/cache.rb', line 60

def fetch_or_store(*args, &block)
  self.class.fetch_or_store(*args, &block)
end