code: public static EmbeddedCacheManager create(long idleTime) {
          Configuration configuration = new ConfigurationBuilder()
                  .expiration().maxIdle(idleTime, TimeUnit.SECONDS)
                  .build();
          return new DefaultCacheManager(configuration);
      }
docs: Create cache manager with custom idle time.
  
  @param idleTime idle time in seconds
  @return cache manager