when i create a top-level global variable in go or bun how will it behave? is the heap getting renewed on every execution or could i do some kind of temp. caching with it?
TL;DR
Top-level global variables in Go and Bun have persistent values and are not reinitialized on every execution. They can be used for temporary caching.