
|
If you were logged in you would be able to see more operations.
|
|
|
OSCache
Created: 24/Aug/04 09:00 AM
Updated: 16/Jan/05 11:04 PM
|
|
| Component/s: |
Listeners
|
| Affects Version/s: |
2.0.2
|
| Fix Version/s: |
2.1
|
|
|
Hi,
I am using OSCache from the API with the DiskPersistenceListener. I would need to delete all objects from the disk when I destroy the cache (on application exit). Today the API doesn't provide an entry point to clear all objects from the disk.
The first proposition is to add cache.clear() at the end of AbstractCacheAdministrator.finalizeListeners(Cache cache). Calling the GeneralCacheAdministrator.destroy() will delete objects from the disk. But I am not sure about the impact for the Web API...
The second proposition is to make Cache.clear() public instead of protected and add applicationCache.clear() in GeneralCacheAdministrator.destroy().
Does it make sense for you?
Thanks a lot,
Stephane
|
|
Description
|
Hi,
I am using OSCache from the API with the DiskPersistenceListener. I would need to delete all objects from the disk when I destroy the cache (on application exit). Today the API doesn't provide an entry point to clear all objects from the disk.
The first proposition is to add cache.clear() at the end of AbstractCacheAdministrator.finalizeListeners(Cache cache). Calling the GeneralCacheAdministrator.destroy() will delete objects from the disk. But I am not sure about the impact for the Web API...
The second proposition is to make Cache.clear() public instead of protected and add applicationCache.clear() in GeneralCacheAdministrator.destroy().
Does it make sense for you?
Thanks a lot,
Stephane
|
Show » |
|