Delete operation performs the store.delete twice
jarifibrahim opened this issue · comments
Ibrahim Jarif commented
When an item is deleted by cache.Del(key)
, we delete it from the store on the following line
Lines 248 to 259 in a093fe6
the same item is deleted again in the process()
goroutine
Lines 331 to 334 in a093fe6
I don't think there's a major side-effect of doing this but we're doing unnecessary work by deleting an already deleted key.