Before this fix, if several Get requests were submitted very quickly, this could run the item create function multiple times due to the unlock of the mutex in the creation code. This fixes the problem by having a mutex in each cache entry which is held when the item is being created. |
||
---|---|---|
.. | ||
cache.go | ||
cache_test.go |