3 * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7 * Copyright (c) 1993 The Regents of the University of Michigan.
10 * cache.c - just shell functions for the now defunct LDAP caching routines
11 * to be deleted in the next "full" release
18 #include <ac/stdlib.h>
20 #include <ac/socket.h>
21 #include <ac/string.h>
27 ldap_enable_cache( LDAP *ld, long timeout, ber_len_t maxmem )
29 static int called = 0;
31 assert( LDAP_VALID( ld ) );
34 fprintf( stderr, "ldap_enable_cache: routine is obsoleted.\n");
41 ldap_disable_cache( LDAP *ld )
46 ldap_set_cache_options( LDAP *ld, unsigned long opts )
51 ldap_destroy_cache( LDAP *ld )
56 ldap_flush_cache( LDAP *ld )
61 ldap_uncache_request( LDAP *ld, int msgid )
66 ldap_uncache_entry( LDAP *ld, LDAP_CONST char *dn )
71 ldap_add_request_to_cache( LDAP *ld, ber_tag_t msgtype, BerElement *request )
76 ldap_add_result_to_cache( LDAP *ld, LDAPMessage *result )
81 ldap_check_cache( LDAP *ld, ber_tag_t msgtype, BerElement *request )