Using the Infinispan Client - remove() does not return value from cache #41034
-
Hello, I added an additional endpoint 'deleteGreeting' to delete entries from cache in the class InfinispanGreetingResource
}` When call the method postGreeting I can see that an entry was successfully added to the cache with the message 'Greeting added!' and in the infinispan console (GUI). Now when I call the endpoint deleteGreeting cache.remove(id); returns null and I see the message "No object found to be deleted!"; The doc states https://docs.jboss.org/infinispan/15.0/apidocs/org/infinispan/commons/api/BasicCache.html#remove(java.lang.Object) What am I doing wrong? Why is cache.remove(id); returning null and not the removed value for given key? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
/cc @gwenneg (cache), @karesti (infinispan), @wburns (infinispan) |
Beta Was this translation helpful? Give feedback.
-
makes sense, somehow I overlooked that options! Thanks very much for the answer and your work. |
Beta Was this translation helpful? Give feedback.
@schall1337 try