NAME
cache_ctx_db - cache_ctx for persistently cached data
SYNOPSIS
#include <cache_ctx.h>
#include <cache_ctx_db.h>

int create_cache_ctx_db(ctxp, name)
    cache_ctx         *ctxp;
    UCHAR             *name;
DESCRIPTION
cache_ctx_db maps the cache_ctx abstraction onto a database.

See cache_ctx for information on using the cache_ctx abstraction.

PARAMETERS
The name parameter is the filename of the database to use for the cache.
RETURN VALUES
On success, create_cache_ctx_db() returns NO_ERROR. On failure, it returns CACHE_CTX_ERR_BAD_PARAMETER or CACHE_CTX_ERR_MEMORY.

See Return Values for descriptions of individual error codes. For documentation on displaying or logging return values, see error_ctx.

SEE ALSO
cache_ctx
NOTES
Because cache_ctx_db uses a database for persistence, calling CACHE_delete() does not delete the underlying cache.
EXAMPLE
See cache_ctx for example use of the cache_ctx abstraction.
BUGS
This document describes a beta implementation. The information contained in this document may be incomplete and is subject to change.

Copyright © 1996, 1997, Visa International Service Association and MasterCard International Incorporated
All Rights Reserved.