lib/rodauth/oauth/ttl_store.rb in rodauth-oauth-0.3.0 vs lib/rodauth/oauth/ttl_store.rb in rodauth-oauth-0.4.0
- old
+ new
@@ -11,10 +11,10 @@
class Rodauth::OAuth::TtlStore
DEFAULT_TTL = 60 * 60 * 24 # default TTL is one day
def initialize
@store_mutex = Mutex.new
- @store = Hash.new {}
+ @store = {}
end
def [](key)
lookup(key, now)
end