CuckooCache::cache::setup

setup initializes the container to store no more than new_size elements and no less than 2 elements.

Synopsis

Declared in <cuckoocache.h>

uint32_t
setup(uint32_t new_size);

Description

setup should only be called once. TestOnlyReset() is the exception.

Return Value

the maximum number of elements storable

Parameters

NameDescription
new_sizethe desired number of elements to store