Table of Contents | Previous | Next | Index

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

ldap_memcache_get()

Gets the in-memory cache associated with an LDAP connection handle.

Syntax

#include <ldap.h>
int ldap_memcache_get( LDAP *ld, LDAPMemCache **cachep );

Parameters

This function has the following parameters:

ld

Connection handle, which is a pointer to an LDAP structure containing information about the connection to the LDAP server.

cachep

When you call this function, the function sets this parameter to the pointer to the LDAPMemCache structure associated with the connection handle.

Returns

One of the following values:

Description

The ldap_memcache_get() function gets the cache associated with the specified connection handle (LDAP structure). This cache is used by all search requests made through that connection.

You can call this function if you want to associate a cache with multiple LDAP connection handles. For example, you can call this function to get the cache associated with one connection, then you can call the ldap_memcache_set() function to associate the cache with another connection.

See Also

ldap_memcache_set().


Table of Contents | Previous | Next | Index

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