lib/rodauth/oauth/ttl_store.rb in rodauth-oauth-1.4.0 vs lib/rodauth/oauth/ttl_store.rb in rodauth-oauth-1.5.0

- old
+ new

@@ -33,10 +33,10 @@ @store_mutex.synchronize do # given that the block call triggers network, and two requests for the same key be processed # at the same time, this ensures the first one wins. return @store[key][:payload] if @store[key] && @store[key][:ttl] < now - @store[key] = { payload: payload, ttl: (ttl || (now + DEFAULT_TTL)) } + @store[key] = { payload: payload, ttl: ttl || (now + DEFAULT_TTL) } end @store[key][:payload] end def uncache(key)