[JIRA-Opensymphony] Created: (CACHE-51) New addgroup tag for use within cache tag

[email protected]
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.opensymphony.com/secure/ViewIssue.jspa?key=CACHE-51


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: CACHE-51
    Summary: New addgroup tag for use within cache tag
       Type: New Feature

     Status: Assigned
   Priority: Minor

    Project: OSCache
 Components: 
             Tags
   Versions:
             2.0 beta 2

   Assignee: Chris Miller
   Reporter: Sheldon Hearn

    Created: Wed, 6 Aug 2003 9:49 AM
    Updated: Wed, 6 Aug 2003 9:49 AM
Environment: N/A

Description:
We're using OSCache to reduce expensive round-tripping between web containers and the EJB container.

We use groups to implement fine-grained cache control, where group names are constructed in a way that identifies the entities from which data was used in cache entries.

When entities change, the entities (running in the EJB container) fire cache flush notifications with JavaGroupsBroadcastingListener.sendNotification().

In this way, all cache entries associated with a changed entity are flushed.  It works wonderfully, and OSCache rocks hard, fast and furious.

However, there are times when it isn't feasible to figure out upfront which entities will be referenced from within the code wrapped in a cache tag.

So we've added a new tag, addgroup, which can be used within the cache tag to add additional groups to a cache entry.  E.g.

<cache:cache groups="eve1024" key="page4-eve1024">
...
<%
    [start of subEvent iterator]
    String subEventName = subEventIterator.next().getname();
%>
    <cache:addgroup group="subeve<%= subEventName %>"/>
<%
    [end of subEvent iterator]
%>
...
</cache:cache>

We've found this feature very helpful, and would like to suggest its inclusion in the OSCache distribution.

I'll attach a patch against the oscache-2.0b2 sources and a new file in followup, since JIRA doesn't seem to allow attachments during initial issue creation.



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.opensymphony.com/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.