Library Version 12.1.6.0

DB->get_cachesize()
Prev | Chapter 2. The DB Handle | Next

## DB->get_cachesize()

    #include <db.h>

    int
    DB->get_cachesize(DB *db,
        u_int32_t *gbytesp, u_int32_t *bytesp, int *ncachep);

The `DB->get_cachesize()` method returns the current size and composition of the cache. These values may be set using the DB->set_cachesize() method.

The `DB->get_cachesize()` method may be called at any time during the life of the application.

The `DB->get_cachesize()` method returns a non-zero error value on failure and 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.

#### ncachep

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

### Class

DB

### See Also

Database and Related Methods, DB->set_cachesize()

Prev | Up | Next
DB->get_byteswapped() | Home | DB->get_create_dir()