We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why @caching is not available?
The text was updated successfully, but these errors were encountered:
+1
Before, in grails 2, for evicting values from several caches following code has been used
@Caching(evict = [ @org.springframework.cache.annotation.CacheEvict(value = "cache1", allEntries = true), @org.springframework.cache.annotation.CacheEvict(value = "cache2", key = '"getTopNewList"'), ]) def cleanCache(){}
In Grails 3 the solution don't work anymore See example project in attched file
How to solve it? duplicate annotation not supported
startup failed: grails-app/services/CacheService.groovy: 54: Cannot specify duplicate annotation on the same member : grails.plugin.cache.CacheEvict @ line 54, column 3. @CacheEvict(value = "myCache", key = '#id') ^ 1 error FAILURE: Build failed with an exception.
startup failed: grails-app/services/CacheService.groovy: 54: Cannot specify duplicate annotation on the same member : grails.plugin.cache.CacheEvict @ line 54, column 3. @CacheEvict(value = "myCache", key = '#id') ^
1 error FAILURE: Build failed with an exception.
test-3.1.14.zip
Sorry, something went wrong.
No branches or pull requests
Why @caching is not available?
The text was updated successfully, but these errors were encountered: