I am trying to use the Docker layer cache in AWS CodeBuild. I have seen the effect when using it to reduce the time when building or pulling Docker image, but I found that it can only use local cache in a certain time period (about less than 1 hour). I have not seen any document about this.
Where did I get confused or do I have a way to set up the cache storage time?