MCPcopy Create free account
hub / github.com/NCAR/wrf-python / get_cache_size

Function get_cache_size

src/wrf/config.py:207–217  ·  view source on GitHub ↗

Return the maximum number of items that the threadlocal cache can retain. Returns: :obj:`int`: The maximum number of items the cache can retain.

()

Source from the content-addressed store, hash-verified

205
206@init_local()
207def get_cache_size():
208 """Return the maximum number of items that the threadlocal cache can
209 retain.
210
211 Returns:
212
213 :obj:`int`: The maximum number of items the cache can retain.
214
215 """
216 global _local_config
217 return int(_local_config.cache_size)
218
219
220def omp_enabled():

Callers 3

runMethod · 0.90
_shrink_cacheFunction · 0.85
cache_itemFunction · 0.85

Calls

no outgoing calls

Tested by 1

runMethod · 0.72