ldap_memcache_destroy()

Purpose

Destroy a search result cache

Format

#include <ldap.h> 

void ldap_memcache_destroy(
    LDAPMemCache *         cache)

Parameters

Input

cache
Specifies the search result cache handle.

Usage

The ldap_memcache_destroy() routine destroys a search result cache created by the ldap_memcache_init() routine. The cache handle is not valid upon completion of this routine. Search result caching is disabled for any LDAP handles that are still associated with the search result cache.

The global search result cache cannot be destroyed. If the routine should be called with the cache handle for the global search result cache, all entries in the global cache are removed but the global cache remains valid.

Function return value

There is no function return value.