Uploaded image for project: 'JBoss Cache'
  1. JBoss Cache
  2. JBCACHE-880

Add expiration policy for nodes based on a node's expiration key

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0.0.ALPHA2
    • Component/s: None
    • Labels:
      None

      Description

      It is useful to specify an expiration time (TTL) for cache values individually. For example, in caching web page contents, the data should be retained based on the HTTP header "Expires". Or, for caching session data, it should be kept based on the user's preference, e.g. Yahoo! Mail allows the authentication credentials to be cached from 1-24 hours.

      Example usage:

      TreeCache cache;
      Fqn fqn1 = new Fqn("node1");
      Fqn fqn2 = new Fqn("node2");
      cache.put(fqn1, "expiration", new Long( ... ));
      cache.put(fqn1, "data", ... );
      cache.put(fqn2, "expiration", new Long( ... ));
      cache.put(fqn2, "data", ... );

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                genman Elias Ross
                Reporter:
                genman Elias Ross
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: