wrf.get_cached_item¶
- wrf.get_cached_item(key, product)¶
Return an item from the threadlocal cache.
The cache should be viewed as two nested dictionaries. The outer key is usually the id for the sequence where the cached item was generated. The inner key is the product type.
Retrieving a cached item behaves like:
value = cache[key][product]
The cache is thread local, so stored items are only available in the thread that cached them.
- Parameters:
- Returns:
The cached object.
- Return type:
See also