DbEnv::get_cachesize()

#include <db_cxx.h>

int
DbEnv::get_cachesize(u_int32_t *gbytesp, u_int32_t *bytesp, int *ncachep);

The DbEnv::get_cachesize() method returns the current size and composition of the cache, as set using the DbEnv::set_cachesize() method.

The DbEnv::get_cachesize() method may be called at any time during the life of the application.

The DbEnv::get_cachesize() method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

Parameters

bytesp

The bytesp parameter references memory into which the additional bytes of memory in the cache is copied.

gbytesp

The gbytesp parameter references memory into which the gigabytes of memory in the cache is copied.

ncachep

The ncachep parameter references memory into which the number of caches is copied.

Class

DbEnv

See Also

Memory Pools and Related Methods, Database Environments and Related Methods, DbEnv::set_cachesize()