[#node-CalculateCacheSizes]
= xref:node.adoc[node]::CalculateCacheSizes
:relfileprefix: ../
:mrdocs:

Split the configured total database cache across the indexes and kernel caches&period;

== Synopsis

Declared in `&lt;node&sol;caches&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:node/CacheSizes.adoc[CacheSizes]
CalculateCacheSizes(
    xref:ArgsManager.adoc[ArgsManager] const& args,
    size&lowbar;t n&lowbar;indexes = 0);
----

== Return Value

The computed per&hyphen;component cache sizes&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *args*
| Argument manager holding the parsed settings&period;
| *n&lowbar;indexes*
| Number of optional indexes that will share the cache&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
