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

Question regarding "nil" #976

Closed
JensRantil opened this issue May 5, 2015 · 6 comments
Closed

Question regarding "nil" #976

JensRantil opened this issue May 5, 2015 · 6 comments

Comments

@JensRantil
Copy link

I am using Jedis#lindex([]byte). Its JavaDoc states that it might return 'nil'. Does that mean need to compare it against new String("nil").toBytes(CharSets.LATIN1) to check for existence? Or is it some other way? How about adding a constant to compare against and refer to that in the JavaDoc?

@marcosnils
Copy link
Contributor

@JensRantil null java type is returned. The doc references Redis API mainly, I guess it's something we need to change.

Here you have an example:
https://github.com/xetorthio/jedis/blob/master/src/test/java/redis/clients/jedis/tests/commands/ListCommandsTest.java#L234

Let us know if you have further questions.

@JensRantil
Copy link
Author

Thanks @marcosnils. Yes, the JavaDoc definitely need to clarify this. Especially the @return part of the JavaDocs. I'll leave this issue open until that's done (unless there's a better issue for it).

@marcosnils
Copy link
Contributor

@JensRantil there are some javadoc issues open already. I'll close this one as we have the others

@JensRantil
Copy link
Author

👍

@JensRantil
Copy link
Author

Hi again @marcosnils, sorry for being a pain - could you refer to an issue the would solve this? I think it would be fair to do that for future reference.

@marcosnils
Copy link
Contributor

Sure, #978

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