Rework caching configuration

Closes gh-401
This commit is contained in:
Stephane Nicoll
2017-09-15 13:29:45 +02:00
parent 41a4b13af1
commit cf93d5ddef
5 changed files with 12 additions and 11 deletions

View File

@@ -39,7 +39,7 @@ public class ProjectResourceLocator {
* @param location a resource location
* @return the content of the resource
*/
@Cacheable("project-resources")
@Cacheable("initializr.project-resources")
public byte[] getBinaryResource(String location) {
try (InputStream stream = getInputStream(location)) {
return StreamUtils.copyToByteArray(stream);
@@ -54,7 +54,7 @@ public class ProjectResourceLocator {
* @param location a resource location
* @return the content of the resource
*/
@Cacheable("project-resources")
@Cacheable("initializr.project-resources")
public String getTextResource(String location) {
try (InputStream stream = getInputStream(location)) {
return StreamUtils.copyToString(stream, UTF_8);