josiahcarlson / redis-in-action

Example code from the book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

method "updateStats" of Chapter05.java has error logic

lomoye opened this issue · comments

the code of java Chapter05.java, method updateStats;
if the key "startKey" is null , has not set it to redis;
I see python has this logic, but java not.

Thank you for the bug report. I will check and fix this soon.

Finally had the chance. Isn't this the default handling?
https://github.com/josiahcarlson/redis-in-action/blob/master/java/src/main/java/Chapter05.java#L321

Was there some other missing default?