Show More
@@ -64,12 +64,12 b" CLEAR_DELETE = 'delete'" | |||||
64 | CLEAR_INVALIDATE = 'invalidate' |
|
64 | CLEAR_INVALIDATE = 'invalidate' | |
65 |
|
65 | |||
66 |
|
66 | |||
67 |
def async_creation_runner(cache, |
|
67 | def async_creation_runner(cache, cache_key, creator, mutex): | |
68 |
|
68 | |||
69 | def runner(): |
|
69 | def runner(): | |
70 | try: |
|
70 | try: | |
71 | value = creator() |
|
71 | value = creator() | |
72 |
cache.set( |
|
72 | cache.set(cache_key, value) | |
73 | finally: |
|
73 | finally: | |
74 | mutex.release() |
|
74 | mutex.release() | |
75 |
|
75 |
General Comments 0
You need to be logged in to leave comments.
Login now