ttl_store.rb

lib/rodauth/oauth/ttl_store.rb

The TTL store is a data structure which keeps data by a key, and with a time-to-live. It is specifically designed for data which is static, i.e. for a certain key in a sufficiently large span, the value will be the same.

Because of that, synchronizations around reads do not exist, while write synchronizations will be short-circuited by a read.