Table of Contents | Previous | Next | Index

Netscape Directory SDK 3.0 for C Programmer’s Guide
     Chapter 18 Functions

ldap_memcache_flush()

Flushes items from the specified cache.

Syntax

#include <ldap.h>
void ldap_memcache_flush( LDAPMemCache *cache, char *dn,
   int scope );

Parameters

This function has the following parameters:

cache

Pointer to the LDAPMemCache structure that you want to flush entries from.

dn

Base DN identifying the search requests that you want flushed from the cache. If the base DN of a search request is within the scope specified by this DN and the scope argument, the search request is flushed from the cache.

If this argument is NULL, the entire cache is flushed.

scope

Scope that (together with the dn argument) identifies the search requests that you want flushed from the cache. If the base DN of the request is within the scope specified by this argument and the dn argument, the request is flushed from the cache.

This argument can have one of the following values:

Description

The ldap_memcache_flush() function flushes search requests from the cache. If the base DN of a search request is within the scope specified by the dn and scope arguments, the search request is flushed from the cache.

If no DN is specified, the entire cache is flushed.


Table of Contents | Previous | Next | Index

Last Updated: 10/01/98 17:06:23