View definition

(Config).HardMaxCacheSize

Defined in github.com/allegro/bigcache/config.go

Description

HardMaxCacheSize is a limit for cache size in MB. Cache will not allocate more memory than this limit. It can protect application from consuming all available memory on machine, therefore from running OOM Killer. Default value is 0 which means unlimited size. When the limit is higher than 0 and reached then the oldest entries are overridden for the new ones.

HardMaxCacheSize is referenced in 1 repository

github.com/allegro/bigcache