ExamCache.get_or_create

ExamCache.get_or_create#

ExamCache.get_or_create()[source]#

Return the artifact at key, calling factory to create it when absent.

The factory runs under the cache lock: concurrent callers create a key once, and every other access waits until the factory returns.