portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sean Taylor <david.sean.tay...@bbc.co.uk>
Subject RE: Bug in JetspeedAccessController re: Profile
Date Tue, 24 Sep 2002 14:02:19 GMT

> I wonder if TurbineCache does not already let you use this 
> kind of caching policy...
> 
> What do you think ?
> 

I'd really prefer to use JCS http://jakarta.apache.org/turbine/jcs/
But I need to set aside some time to learn it first.

But Turbine's cache is pretty nice.
Example:

// this adds an object to the cache and lets it live for 5 seconds
gs.addObject("cached_object",
        new CachedObject("in_the_cache",5000));

You can also place an expiration time on your objects so the Service will
automatically remove them when they expire. 
If you don't specify an expiration time, the Service uses the default time
set by the property cache.check.frequency in the TurbineResources.properties
file. To see an example, look at the file TestGlobalCache.java located in
the actions folder of the Turbine source.

David

> --
> Raphaƫl Luta - raphael.luta@groupvu.com
> Technology and New Initiatives
> Vivendi Universal Networks - Paris
> 
> --
> To unsubscribe, e-mail:   
> <mailto:jetspeed-dev-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>
> 


BBCi at http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain 
personal views which are not the views of the BBC unless specifically 
stated.
If you have received it in error, please delete it from your system, do 
not use, copy or disclose the information in any way nor act in 
reliance on it and notify the sender immediately. Please note that the 
BBC monitors e-mails sent or received. Further communication will 
signify your consent to this.


--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message