long2ice/fastapi-cache

Is there a lock when cached data is preparing?

PaleNeutron opened this issue · 1 comments

for example, if function A is decorated and will take 10s and 1 core CPU to return, what happens the function is call 10 times in in 1s?

Does the function actually run 10 times? Is there a lock when cached data is preparing?