Hi! I am using LRU mechanism with a custom eviction policy to ensure unpopular objects are evicted in case of memory shortage.
The callbacks in SpaceEvictionStrategy(onUpdate, onRemove and onInsert) are only invoked for one of my space models.
Meaning, when I save object of class A, Gigaspaces call onInsert and when I save object of class B, nothing.
Can I control this behavior? Why are the callbacks only invoked for one model and not the other one?
Other than this, both models works completely fine.
↧