fastcache icon indicating copy to clipboard operation
fastcache copied to clipboard

Support larger cache sizes

Open glightfoot opened this issue 5 years ago • 1 comments

The maxbytes parameter to New() is an int, which effectively limits the cache size to ~2GB. It would be nice if it supported int64 so we could create very large caches

glightfoot avatar Dec 30 '19 21:12 glightfoot

int in Go is equivalent to int64 on 64-bit architectures. As for 32-bit archs, they usually cannot address more than 2^32 bytes in process memory.

valyala avatar Dec 31 '19 17:12 valyala