expire entity cache after every 1 hr !

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

expire entity cache after every 1 hr !

prashant punekar
Hi,

Here is my understanding, please do confirm.

The entity (say MyEntity) has the attribute set never-cache=false (default value)

Now the requirement is, I want this cache to expire every 1 hr.

Is the setting (mentioned below), in framework\base\config\cache.properties a solution to this requirement ?

entitycache.entity.mydelegator.MyEntity.expireTime=3600000
entitycache.entity.mydelegator.MyEntity.useSoftReference=true

here delegator name is "mydelegator" and entity name is "MyEntity"

Regards,
Prashant


________________________________

http://www.mindtree.com/email/disclaimer.html
Reply | Threaded
Open this post in threaded view
|

Re: expire entity cache after every 1 hr !

David E. Jones-2

You can look in the WebTools Cache maintenance screens to make sure the cache name is correct, but yes, that's example the idea of how things should work in the cache.properties file.

-David


On Mar 17, 2011, at 1:33 PM, Prashant Punekar wrote:

> Hi,
>
> Here is my understanding, please do confirm.
>
> The entity (say MyEntity) has the attribute set never-cache=false (default value)
>
> Now the requirement is, I want this cache to expire every 1 hr.
>
> Is the setting (mentioned below), in framework\base\config\cache.properties a solution to this requirement ?
>
> entitycache.entity.mydelegator.MyEntity.expireTime=3600000
> entitycache.entity.mydelegator.MyEntity.useSoftReference=true
>
> here delegator name is "mydelegator" and entity name is "MyEntity"
>
> Regards,
> Prashant
>
>
> ________________________________
>
> http://www.mindtree.com/email/disclaimer.html