mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
This changes the CacheBuilder methods that are used to set expiration times to accept a TimeValue instead of long. Accepting a long can lead to issues where the incorrect value is passed in as the time unit is not clearly identified. By using TimeValue the caller no longer needs to worry about the time unit used by the cache or builder.