ehcache / ehcache3

Ehcache 3.x line
http://www.ehcache.org
Apache License 2.0
2.02k stars 581 forks source link

OffheapStore to support CacheEventListeners #368

Closed alexsnaps closed 9 years ago

alexsnaps commented 9 years ago

AFAICT that is not the case right now, it seems somewhat wired in, but only ever uses the CacheEvents.nullStoreEventListener()

ljacomet commented 9 years ago

Unless there is an issue with the way wiring is done in the OnHeapStore through org.ehcache.internal.store.offheap.OffHeapStore#enableStoreEventNotifications, then the OffHeapStore works the same way, see org.ehcache.internal.store.offheap.OffHeapStore#enableStoreEventNotifications.

Currently org.ehcache.internal.store.offheap.OffHeapStoreSPITest#testStoreEventListener can't be enabled because the OffHeapStore lacks the capacity of triggering eviction from a "entry count" based constraint. But all the tests not related to eviction do pass.