lib/ldclient-rb/expiring_cache.rb in ldclient-rb-5.4.3 vs lib/ldclient-rb/expiring_cache.rb in ldclient-rb-5.5.0

- old
+ new

@@ -4,9 +4,10 @@ # Adapted from https://github.com/SamSaffron/lru_redux/blob/master/lib/lru_redux/ttl/cache.rb # under MIT license with the following changes: # * made thread-safe # * removed many unused methods # * reading a key does not reset its expiration time, only writing + # @private class ExpiringCache def initialize(max_size, ttl) @max_size = max_size @ttl = ttl @data_lru = {}