| Home >> All >> com >> opensymphony >> oscache >> web >> [ tag Javadoc ] |
com.opensymphony.oscache.web.tag: Javadoc index of package com.opensymphony.oscache.web.tag.
Package Samples:
com.opensymphony.oscache.web.tag
Classes:
FlushTag: FlushTag flushes caches created with <cache>. This tag provides programmatic control over when caches are flushed, and can flush all caches at once. Usage Examples: <%@ taglib uri="oscache" prefix="cache" %> <cache:flush scope="application" /> <cache:flush scope="session" key="foobar" /> Note: If no scope is provided (or scope is null), it will flush all caches globally - use with care! Flushing is done by setting an appropriate application level time, which <cache> always looks at before retrieving the cache. If this 'flush time' is > that cache's last update, ...
UseCachedTag: UseCachedTag is a tag that tells a <cache> tag to reuse the cached body. Usage Example: <%@ taglib uri="oscache" prefix="cache" %> <cache:cache key="mycache" scope="application"> if (reuse cached) <cache:usecached /> else some other logic </cache:cache> Note this is very useful with try / catch blocks so that you can still produce old cached data if an exception occurs, eg your database goes down.
CacheTag: CacheTag is a tag that allows for server-side caching of post-processed JSP content. It also gives great programatic control over refreshing, flushing and updating the cache. Usage Example: <%@ taglib uri="oscache" prefix="cache" %> <cache:cache key="mycache" scope="application" refresh="false" time="30"> jsp content here... refreshed every 30 seconds </cache:cache>
GroupsTag: GroupsTag is a tag that add a comma-delimited list of groups to an ancestor CacheTag's groups.
GroupTag: GroupTag is a tag that adds a group to an ancestor CacheTag's groups.
| Home | Contact Us | Privacy Policy | Terms of Service |