gomemcache
gomemcache copied to clipboard
use FIFO queue for freelist
Using FIFO queue may help with cycling through connections more evenly. I have noticed the front of the freeconn list can stay underutilized if you have infrequent bursts and a high idle max pool size. Since there is no logic to clean closed idle connections, it might make sense to FIFO through them instead of letting stale connections build up.