Skip to content

Commit

Permalink
Fix for Issue #21 - array indexing on by default.
Browse files Browse the repository at this point in the history
This being indexing related, we can accommodate it as part of the same branch/pull/merge.
  • Loading branch information
gsharma authored and Jonathan Leibiusky committed Dec 26, 2010
1 parent 939768c commit d928201
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/redis/clients/johm/collections/RedisArray.java
Expand Up @@ -67,7 +67,9 @@ private boolean save(T element) {
if (element != null) {
success = nest.cat(JOhmUtils.getId(owner)).cat(field.getName())
.rpush(JOhmUtils.getId(element).toString()) > 0;
indexValue(element);
if (isIndexed) {
indexValue(element);
}
}
return success;
}
Expand Down

0 comments on commit d928201

Please sign in to comment.