Skip to content

Commit

Permalink
Fix cache for attribute in redis
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiLandiak committed Sep 16, 2024
1 parent 7634f91 commit 2c06947
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,15 @@ public AttributeKvEntry deserialize(AttributeCacheKey key, byte[] bytes) throws
});
}

@Override
public Long getVersion(AttributeKvEntry value) {
if (value == null) {
return 0L;
} else if (value.getVersion() != null) {
return value.getVersion();
} else {
return null;
}
}

}

0 comments on commit 2c06947

Please sign in to comment.