Hi,

I have created a Cornerstone component based on the Cache lib from avalon-sandbox. Unfortunately I'm still having problems making it work - that cache. It didn't seem to store anything really, at least whenever I asked whether it had that object in the cache it would always say no even if I put it in right before.

But I need to do some more testing of my component in the next time anyway and for this I want to create a Cache component testcase in Cornerstone.

There is a cache also in commons but, when I look at the interfaces, I like the Exaclibur/Sandbox Cache much much more.

This is how one configures the cache component:

<cache validate="true">
<store class="org.apache.excalibur.cache.store.FlipSpacesStore" capacity="1000"/>
<policy class="org.apache.excalibur.cache.policy.LRUPolicy"/>
<validator class="org.apache.excalibur.cache.validator.TimeoutValidator" timeout="10000"/>
</cache>


It is a cache manager that means you define the cache store, policy and validation and then call a interface methods newCache() and get a cache with that configuration.

I will let you know when it is ready and tested.


Regards, Peter




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to