Table of Contents | Previous | Next | Index

Netscape Directory SDK 3.0 for C Programmer’s Guide
     Chapter 17 Data Types and Structures

LDAPMemCache

LDAPMemCache is a type of structure representing an in-memory, client-side cache.

You can create a cache and specify the following information:

To use a cache, you need to associate it with a connection handle (and LDAP structure). Before a search request is sent to the server, the cache is checked to determine if the same request was made before. If an earlier request was cached, the search results are retrieved from the cache.

Note that the cache uses the search criteria as the key to cached items. Search requests with different criteria are cached as separate items.

For example, suppose you send a search request specifying that you just want to retrieve the uid attribute. Your client caches the results of that search. If you send a similar search request specifying that you want to retrieve all attributes instead of just the uid, the results cached from the previous search are not used.

the cache uses a combination of the following information as the key to a cached item:

Use the following functions to work with the cache:


Table of Contents | Previous | Next | Index

Last Updated: 10/01/98 17:05:28