Return the maximum number of items that the threadlocal cache can retain. Returns: :obj:`int`: The maximum number of items the cache can retain.
()
| 205 | |
| 206 | @init_local() |
| 207 | def 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 | |
| 220 | def omp_enabled(): |
no outgoing calls