Anyone get this good stuff into an xdoc yet?

"Aaron Smuts" <[EMAIL PROTECTED]> writes:

> Just don't specify a disk cache in the cache.ccf file and you have a
> cache without a disk cache.  You can setup the default region and that's
> all.  It will work.  Your complete cache.ccf file could look like:
>
> ##############################################################
> ################## DEFAULT CACHE REGION  #####################
> # sets the default aux value for any non configured caches
> jcs.default=
> jcs.default.cacheattributes=org.apache.stratum.jcs.engine.CompositeCache
> Attributes
> jcs.default.cacheattributes.MaxObjects=1000
> jcs.default.cacheattributes.MemoryCacheName=org.apache.stratum.jcs.engin
> e.memory.lru.LRUMemoryCache
> jcs.default.cacheattributes.cacheattributes.UseMemoryShrinker=true
> jcs.default.cacheattributes.cacheattributes.MaxMemoryIdleTimeSeconds=360
> 0
> jcs.default.cacheattributes.cacheattributes.ShrinkerIntervalSeconds=60
>
> Or even simpler:
>
> ##############################################################
> ################## DEFAULT CACHE REGION  #####################
> # sets the default aux value for any non configured caches
> jcs.default=
> jcs.default.cacheattributes=org.apache.stratum.jcs.engine.CompositeCache
> Attributes
> jcs.default.cacheattributes.MaxObjects=1000
> jcs.default.cacheattributes.MemoryCacheName=org.apache.stratum.jcs.engin
> e.memory.lru.LRUMemoryCache
>
> Add a disk cache by adding:
>
> jcs.auxiliary.DC=org.apache.stratum.jcs.auxiliary.disk.indexed.IndexedDi
> skCacheFactory
> jcs.auxiliary.DC.attributes=org.apache.stratum.jcs.auxiliary.disk.indexe
> d.IndexedDiskCacheAttributes
> jcs.auxiliary.DC.attributes.DiskPath=g:/dev/jakarta-turbine-stratum/raf
>
> and changing the first line to:
>
> jcs.default=DC
>
> Your done.
>
> This could be the configuration file for the book store example.
>
>
> Configuration is pretty easy, the remote cache is the most difficult,
> but basically:
>
> Configuring a disk cache is a simple as telling it what folder to use.
>
> Setting up remote caches involves specifying the server address and
> starting the server.
>
> Setting up lateral caches (only use the TCP) involves listing the other
> lateral caches in the TCPServers attribute. 
>
> Aaron
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]] On Behalf Of John McNally
>> Sent: Tuesday, February 19, 2002 10:40 PM
>> To: Turbine Developers List
>> Subject: Re: [DOCUMENTATION] Stratum / JCS Documentation
>> 
>> A simple example setting up a LRU cache with and without disk storage
>> would interest me.  Would the simplest case of a completely in memory
>> cache, be too simple a case to use JCS?
>> 
>> john mcnally
>> 
>> Daniel Rall wrote:
>> >
>> > "Pete Kazmier" <[EMAIL PROTECTED]> writes:
>> >
>> > > On Sat, Feb 16, 2002 at 10:55:02AM -0500, Aaron Smuts wrote:
>> > >> Suggestions on more documentation?  We really need more examples
> of
> > > >> how to use this thing.
>> > >
>> > > I think it would be useful if there was a document that presented
>> > > 'typical' deployment(s) of JCS.  The overview doc is very
> high-level,
> > > > while the other docs deal with specifics.  How about something in
> the
> > > > middle?  A document about how to use JCS effectively in an
>> application?
>> > > This might specify recommended numbers of caches and what types of
>> > > caches to deploy (local, remote, lateral, etc ...) as well as
> other
> > > > architectural issues?
>> >
>> > Definitely, concrete examples are key to grasping new concepts.  I
>> > would love to see an example which shows how to setup a distributed,
>> > in-memory cache which propogates cache invalidations across hosts in
>> > the cluster.
>> >
>> > --
>> > To unsubscribe, e-mail:   <mailto:turbine-dev-
>> [EMAIL PROTECTED]>
>> > For additional commands, e-mail: <mailto:turbine-dev-
>> [EMAIL PROTECTED]>
>> 
>> --
>> To unsubscribe, e-mail:   <mailto:turbine-dev-
>> [EMAIL PROTECTED]>
>> For additional commands, e-mail: <mailto:turbine-dev-
>> [EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

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

Reply via email to