I'm trying to use a thread-local variable as the
cache_dict to the
MemoryBackend. The issue is that the region must exist at import time to decorate the functions, so this would result in different threads reconfiguring the cache region which exists across threads.
Is there a mechanism for creating a lazy or "fake" region which can intercept all calls to it and delegate them to a thread-local region, creating and configuring the region if it didn't exist?
Does this make sense and/or sound sane?