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

exception while memoizing domain object #20

Closed
bp-FLN opened this issue Nov 6, 2013 · 1 comment
Closed

exception while memoizing domain object #20

bp-FLN opened this issue Nov 6, 2013 · 1 comment

Comments

@bp-FLN
Copy link

bp-FLN commented Nov 6, 2013

Hi,

i'm trying to memoize a domain object by using redisService.memoizeDomainObject() like this:

def importUser

importUser = redisService.memoizeDomainObject(User, "import:user", 600) {
    def user = User.findByUsername('import')
    return user
}

and i'm getting:
groovy.lang.MissingMethodException: Error No signature of method: redis.clients.jedis.Jedis.saveIdListTo() is applicable for argument types: (java.lang.String, test.User, java.lang.Integer) values: [import:user, test.User : 1, 600]

The cause is that memoizeDomainObject() delegates to memoizeDomainList() instead of memoizeDomainObject().
I send a pull-request that fixes this issue soon.

@tednaleid
Copy link
Contributor

fixed by #21, thanks for the patch! closing this issue

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