[DAISY] Updated: EventAwareCache
A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/1492.html Document ID: 1492 Branch: main Language: default Name: EventAwareCache (unchanged) Document Type: Cocoon Document (unchanged) Updated on: 8/17/08 3:35:06 PM Updated by: Lukas Lang A new version has been created, state: draft Parts = Content --- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 1538 bytes (previous version: 1527 bytes) Content diff: (30 equal lines skipped) action in our pipeline section, calling the CacheEvent bean's act method, passing the name of an event:/p --- prelt;map:pipeline type=event-awaregt; +++ pre lt;map:pipeline type=event-awaregt; +++ lt;map:match pattern=actiongt; +++ lt;map:act type=CacheEventgt; +++ lt;map:parameter name=event value={request-param:event} /gt; +++ lt;/map:actgt; +++ ... +++ lt;/map:matchgt; +++ lt;/map:pipelinegt;/pre --- lt;map:match pattern=actiongt; +++ h3Configuration/h3 --- lt;map:act type=CacheEventgt; --- --- lt;map:parameter name=event value={request-param:event} /gt; --- --- lt;/map:actgt; --- --- ... --- --- lt;/map:matchgt; --- --- lt;/map:pipelinegt;/pre --- --- pConfiguration/p --- /body /html
[DAISY] Updated: EventAwareCache
A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/1492.html Document ID: 1492 Branch: main Language: default Name: EventAwareCache (unchanged) Document Type: Cocoon Document (unchanged) Updated on: 8/17/08 3:40:15 PM Updated by: Lukas Lang A new version has been created, state: draft Parts = Content --- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 2421 bytes (previous version: 2442 bytes) Content diff: (6 equal lines skipped) event occurs, it uncaches content, associated with the event by using keys, stored in a registry./p --- h1Basic Info/h1 --- h1Documentation/h1 h3Example/h3 (49 equal lines skipped)
[DAISY] Updated: EventAwareCache
A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/1492.html Document ID: 1492 Branch: main Language: default Name: EventAwareCache (unchanged) Document Type: Cocoon Document (unchanged) Updated on: 8/17/08 3:34:05 PM Updated by: Lukas Lang A new version has been created, state: draft Parts = Content --- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 1527 bytes (previous version: 37 bytes) Content diff: --- htmlbodypTODO/p/body/html +++ html +++ body +++ +++ h1Summary/h1 +++ +++ pEventAwareCache is a cache, implementing the EventAware interface. If an +++ event occurs, it uncaches content, associated with the event by using keys, +++ stored in a registry./p +++ +++ h1Basic Info/h1 +++ +++ h1Documentation/h1 +++ +++ h3Example/h3 +++ +++ pTo use Eventcache capabilities, you need to configure a +++ CachingProcessingPipeline, defining the eventaware cache to use./p +++ +++ pre lt;map:componentsgt; +++ lt;!-- Pipes definition --gt; +++ lt;map:pipes default=cachinggt; +++ lt;!-- A pipe must be defined configured to use the EventAware cache.--gt; +++ lt;map:pipe logger=core.sitemap name=event-aware src=org.apache.cocoon.components.pipeline.impl.CachingProcessingPipelinegt; +++ lt;parameter name=cache-role value=org.apache.cocoon.caching.Cache/EventAware /gt; +++ lt;/map:pipegt; +++ lt;/map:pipesgt; +++ lt;/map:componentsgt;/pre +++ +++ pIn this example, emorg.apache.cocoon.caching.Cache/EventAware/em is the +++ identifier of a the Spring bean, which takes care of actions. Next, we define an +++ action in our pipeline section, calling the CacheEvent bean's act method, +++ passing the name of an event:/p +++ +++ prelt;map:pipeline type=event-awaregt; +++ +++ lt;map:match pattern=actiongt; +++ +++ lt;map:act type=CacheEventgt; +++ +++ lt;map:parameter name=event value={request-param:event} /gt; +++ +++ lt;/map:actgt; +++ +++ ... +++ +++ lt;/map:matchgt; +++ +++ lt;/map:pipelinegt;/pre +++ +++ pConfiguration/p +++ +++ /body +++ /html
[DAISY] Updated: EventAwareCache
A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/1492.html Document ID: 1492 Branch: main Language: default Name: EventAwareCache (unchanged) Document Type: Cocoon Document (unchanged) Updated on: 8/17/08 3:39:40 PM Updated by: Lukas Lang A new version has been created, state: draft Parts = Content --- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 2442 bytes (previous version: 1538 bytes) Content diff: (41 equal lines skipped) h3Configuration/h3 +++ pThere is no special need to configure an eventaware cache, as the block +++ implementation provides all necessary Spring configuration files./p +++ +++ pre lt;!-- Event-cache implementation based on the default CacheImpl. --gt; +++ lt;bean name=org.apache.cocoon.caching.Cache/EventAware +++ class=org.apache.cocoon.caching.impl.EventAwareCacheImpl init-method=initializegt; +++ lt;property name=store ref=org.apache.excalibur.store.Store/TransientStore /gt; +++ lt;property name=eventRegistry ref=org.apache.cocoon.caching.EventRegistry /gt; +++ lt;/beangt; +++ +++ lt;!-- Event-cache registry. --gt; +++ lt;bean name=org.apache.cocoon.caching.EventRegistry +++ class=org.apache.cocoon.caching.impl.StoreEventRegistryImpl init-method=initializegt; +++ lt;property name=store ref=org.apache.excalibur.store.Store/TransientStore /gt; +++ lt;/beangt; +++ /pre +++ /body /html Fields == CocoonBlock: eventcache (new field)