#include <db.h>
int
DB_ENV->get_cachesize(DB_ENV *dbenv,
    u_int32_t *gbytesp, u_int32_t *bytesp, int *ncachep);  
      
         The DB_ENV->get_cachesize() method returns the current size and
         composition of the cache, as set using the
         DB_ENV->set_cachesize()
         method.
    
         The DB_ENV->get_cachesize() method may be called at any time during
         the life of the application.
    
         The DB_ENV->get_cachesize() 
            
                  method returns a non-zero error value on failure and 0 on success.
            
            
        
    
The gbytesp parameter references memory into which the gigabytes of memory in the cache is copied.
The bytesp parameter references memory into which the additional bytes of memory in the cache is copied.