PL/SQL Packages and Types Reference 10g Release 1 (10.1) Part Number B10802-01 |
|
|
View PDF |
The OWA_CACHE
package provides an interface that enables the PL/SQL
Gateway
cache to improve the performance of PL/SQL web applications.
The chapter contains the following topics:
This procedure disables the cache for this particular request.
OWA_CACHE.DISABLE;
This function returns the tag associated with the cached content. It is used in the Validation technique only.
OWA_CACHE.GET_ETAG RETURN VARCHAR2;
The tag for cache hit, otherwise NULL
.
This returns the caching level. It is used in the Validation technique model only.
OWA_CACHE.GET_LEVEL RETURN VARCHAR2;
The caching level string ('USER
' or 'SYSTEM
') for cache hit, otherwise NULL
.
This sets up the cache headers for validation model cache type.
OWA_CACHE.SET_CACHE( p_etag IN VARCHAR2, p_level IN VARCHAR2);
Parameter | Description |
---|---|
|
The |
|
The caching level (' |
VALUE_ERROR
is thrown if
This procedure sets up the cache headers for expires model cache type.
OWA_CACHE.SET_EXPIRES( p_expires IN NUMBER, p_level IN VARCHAR2);
Parameter | Description |
---|---|
|
The number of minutes this content is valid. |
|
The caching level (' |
VALUE_ERROR
is thrown if
This procedure sets up the headers for a not-modified cache hit. It is used in the Validation technique only.
OWA_CACHE.SET_NOT_MODIFIED;
VALUE_ERROR
is thrown if If the etag
was not passed in
This procedure sets the headers for a surrogate-control header for web cache
OWA_CACHE.SET_SURROGATE_CONTROL( p_value IN VARCHAR2);
Parameter | Description |
---|---|
|
The value to be passed as the Surrogate-Control header. |
VALUE_ERROR
is thrown if If p_value is greater than 55 in length.