makes cache ttl configurable