Library Version 12.1.6.2

DbEnv::get_cache_max()
Prev | Chapter 9. The DbMpoolFile Handle | Next

## DbEnv::get_cache_max()

    #include <db_cxx.h>

    int
    DbEnv::get_cache_max(u_int32_t *gbytesp, u_int32_t *bytesp);

The `DbEnv::get_cache_max()` method returns the maximum size of the cache as set using the DbEnv::set_cache_max() method.

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

The `DbEnv::get_cache_max()` 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

#### gbytesp

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

#### bytesp

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

### Class

DbEnv

### See Also

Database Environments and Related Methods, DbEnv::set_cache_max()

Prev | Up | Next
Db::get_mpf() | Home | DbEnv::get_cachesize()