We have a few implementations of this inside Google (expiring.Map, timedcache, and lru.Cache). It might make sense to open source these, if they have no internal dependencies.
On Wed, Jul 19, 2017 at 3:22 PM Rajanikanth Jammalamadaka < rajanika...@gmail.com> wrote: > Does somebody have a recommendation for an expiring dict? If I have to > write my own, is there a way to avoid iterating over all the keys to delete > the expired entries? > > Thanks, > Raj > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.