Rajanikanth, If it helps you, have a look on the library we have posted which follows ideas out of implementation of groupcache/lru.go, adding expiring capabilities to LRU (same logic of list indexing behind): https://github.com/cgrates/ltcache
DanB On Friday, July 21, 2017 at 2:01:15 AM UTC+2, Rajanikanth Jammalamadaka wrote: > > Thanks for the replies. > > Sameer: it would be awesome if you can open source them. > > Thanks, > Rajanikanth > > On Thu, Jul 20, 2017, 7:47 PM Sameer Ajmani <sam...@golang.org > <javascript:>> wrote: > >> 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 < >> rajan...@gmail.com <javascript:>> 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...@googlegroups.com <javascript:>. >>> 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.