The following table describes parameters for the dr_cache_init function.
Table 11–1 dr_cache_init parameters
Parameter |
Description |
---|---|
DrHdl hdl |
Pointer to an unallocated handle. |
RefreshFunc_t ref |
Pointer to a cache refresh function. This can be NULL. See the DR_CHECK flag and DR_EXPIR return value for dr_net_write. |
FreeFunc_t fre |
Pointer to a function that frees an entry. |
CompareFunc_t cmp |
Pointer to a key comparator function. |
PRUint32 maxEntriesp |
Maximum number of entries possible in the cache for a given hdl. |
PRIntervalTime maxAgep |
The maximum amount of time that an entry is valid. If 0, the cache never expires. |