globalOptions.setCacheMaxSize

Set the maximum total data size that will be cached in memory across all repositories before libgit2 starts evicting objects from the cache. This is a soft limit, in that the library might briefly exceed it, but will start aggressively evicting objects from cache when that happens.

The default cache size is 256Mb.

struct globalOptions
static
void
setCacheMaxSize
(
ptrdiff_t maxStorageBytes
)

Meta