Skip to content
New issue

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

@Caching is missing #39

Open
miguelabautista opened this issue Jan 9, 2017 · 1 comment
Open

@Caching is missing #39

miguelabautista opened this issue Jan 9, 2017 · 1 comment

Comments

@miguelabautista
Copy link

Why @caching is not available?

@demon101
Copy link

+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.

test-3.1.14.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants