muesli / cache2go

Concurrency-safe Go caching library with expiration capabilities and access counters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CacheTable.Add() should not use “defer table.unlock ”

brightyuan opened this issue · comments

CacheTable.Add() function ,must not use "defer table.Unlock()"
because addInternal() func will unlock table, that will make duplicate deletion exception