#include <ldap.h>
int ldap_memcache_set( LDAP *ld, LDAPMemCache *cache );
ld |
Connection handle, which is a pointer to an |
cache |
Pointer to an |
LDAP_SUCCESS if the cache was successfully associated with the connection handle. LDAP_PARAM_ERROR if an invalid parameter was passed to the function LDAP_SIZELIMIT_EXCEEDED if the size of the cache is too small. ldap_memcache_set() function associates a cache that you have created (by calling the ldap_memcache_init() function) with an LDAP connection handle.
After you call this function, search requests made over the specified LDAP connection will use this cache. Note that calling the ldap_unbind() function or the ldap_unbind() function will disassociate the cache from the LDAP connection handle.
You can call this function if you want to associate a cache with multiple LDAP connection handles. For example, you can call the ldap_memcache_get() function to get the cache associated with one connection, then you can call this function associate the cache with another connection.
ldap_memcache_init(), ldap_memcache_get().
Last Updated: 10/01/98 17:06:23