update Cache for handling of 0 and int based ttl