objectcache: add and use adaptiveTTL() method