You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple Entity class with @document("MYENTITY:") annotation over it, where MYENTITY: represents key prefix in cache.
On running repository.save(myEntityObj); method, it saves that object with key for eg: MYENTITY:1
But when trying to save multiple entity objects using repository.saveAll method, it saves all objects with required keys but with double colon instead of single. Eg: MYENTITY::2
Please check this issue, because ft.search would work for keys with double colon as well, but json.get is not working
The text was updated successfully, but these errors were encountered:
Change "MYENTITY:" to "MYENTITY" - the convention is the Redis OM will take the prefix and concatenate it with the ID using :
My guess is that in save we are properly sanitizing the prefix and drop the : but on on saveAll - will check this but in general the rule is don't put the key prefix separator in the prefix explicitly. The saveAll behavior will be amended to drop the : if it is present as the last char in the prefix.
Hi @bsbodden ,
I have a simple Entity class with @document("MYENTITY:") annotation over it, where MYENTITY: represents key prefix in cache.
On running repository.save(myEntityObj); method, it saves that object with key for eg: MYENTITY:1
But when trying to save multiple entity objects using repository.saveAll method, it saves all objects with required keys but with double colon instead of single. Eg: MYENTITY::2
Please check this issue, because ft.search would work for keys with double colon as well, but json.get is not working
The text was updated successfully, but these errors were encountered: