An
Init
SAF must pass the following parameters to the
•
RefreshFunctionPointer
•
FreeFunctionPointer
•
KeyComparatorFunctionPtr
•
RefershInterval
The
RefershInterval
information, see the NSPR reference at:
http://www.mozilla.org/projects/nspr/reference/html/index.html
As an alternative, if the body is a file that is present in a directory within the web
server system machine, the plugin can generate the header and footer and call the
fc_net_write
This appendix lists the most important functions a results caching plugin can use.
For more information, see the following file:
server_root/plugins/include/drnsapi.h
dr_cache_destroy
The
dr_cache_destroy
previously created and used cache handle. This handle can no longer be used in
subsequent calls to any of the above functions unless another
performed.
Syntax
void dr_cache_destroy(DrHdl *hdl);
Parameters
DrHdl *hdl
dr_cache_init
Returns
void
Example
dr_cache_destroy(&myHdl);
326
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
SAF that is visible to the plugin creates the handle to the cache. The
value must be a
function along with the file name.
function destroys and frees resources associated with a
is a pointer to a previously initialized handle to a cache (see
).
dr_cache_init
type. For more
PrIntervalTime
Init
function:
is
dr_cache_init