Method: Bunq::ThreadSafeSessionCache#get

Defined in:
lib/bunq/client.rb

#get(&block) ⇒ Object



98
99
100
# File 'lib/bunq/client.rb', line 98

def get(&block)
  @cache.fetch_or_store(CACHE_KEY) { block.call if block_given? }
end