fastcache
fastcache copied to clipboard
Any possibility of OOM?
I dont see any configuration settings for limiting the number of bytes or slices / elements allocated.
Thanks for the software by the way
fastcache.New accepts maxBytes arg. This is the maximum cache size in bytes. The number of elements is limited by the same maxBytes arg - each element occupies at least len(key)+len(value)+len(header) bytes, where header is per-entry header with non-zero size.