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

Fixing docs to reflect proper withRedis usage #14

Merged
merged 1 commit into from
Jul 10, 2012

Conversation

divideby0
Copy link
Contributor

According to our experience, this call fails:

redisService.withRedis {
   redis.exists "someKey"
}

When we do this, we get the following exception:

Caused by MissingPropertyException: No such property: redis for class: stufftodo.ChicagoReaderEventSearchService
->>  26 | doCall in foo.BarService$_baz_closure1$$ENcncclc
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    76 | withRedis in grails.plugin.redis.RedisService
|    25 | shouldUpdate in foo.BarService$$ENcncclc
|    39 | handleMessage in     ''
^   680 | run in java.lang.Thread

However, when we call:

redisService.withRedis { Jedis redis ->
   redis.exists "someKey"
}

Everything works as expected. This pull request updates the README to reflect proper API usage.

If we're mistaken and the first example should work as expected, we may have hit a bug.

@tednaleid
Copy link
Contributor

+1 thanks! Yep, that was an error in the documentation, thanks for fixing it!

tednaleid added a commit that referenced this pull request Jul 10, 2012
Fixing docs to reflect proper withRedis usage
@tednaleid tednaleid merged commit 94fb726 into grails:master Jul 10, 2012
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

Successfully merging this pull request may close these issues.

None yet

2 participants