bigcache
bigcache copied to clipboard
Get multiple items in a single function call
Hello, I was wondering if bigcache could support a getMulti(keys []string) function or if there was a technical limitation preventing it.
Thanks!
Hey, I think it's not a bug but enhancement. I thin it make sens to expose get/set for multiple items as it can boost performance as there will be only single lock. This may be useful to setup/backup the cache.
@cristaloleg WDYT?
Hey, I think it's not a bug but enhancement. I thin it make sens to expose get/set for multiple items as it can boost performance as there will be only single lock. This may be useful to setup/backup the cache.
@cristaloleg WDYT?
Yea sorry the bug label came by default and I wasn't able to remove it. I completely agree @janisz , if you can point me to what I should look at I can take a jab at implementing the multi approach.
Yeah, sounds good. With a multiget we can increase throughput because we will take lock once.
Is this available?
@raeidish looks so