ec_fc_set_capacity
Name
ec_fc_set_capacity — Sets a new capacity for a given cache
Synopsis
#include "ec_fc.h"
| int **ec_fc_set_capacity** (
| cache, | |
| | expire)
; | |
ec_fc_t * <var class="pdparam">cache</var>
;
unsigned int <var class="pdparam">expire</var>
;
Description
Note
This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.
Sets a new capacity for a given cache.
Capacity is rounded up to a power of two.
- cache
-
cache to update
- expire
-
new capacity
Returns 0 on success, non-zero on failure.