Task caching: How can I tell when i'm using the same worker


I’m using task caching to cache a Maven repo and have some questions,

  1. How long does the cache last if I dont change the task or pipeline names?

2.The cache is tied to a worker, how do i know if the worker is a new one which doesn’t have access to the cached folder?

I’ve only used the cache for a day but the behavior is not consistent so far.