Return the threadlocal cache. This is primarily used for testing. Returns: :class:`threading.local`
()
| 148 | |
| 149 | |
| 150 | def _get_cache(): |
| 151 | """Return the threadlocal cache. |
| 152 | |
| 153 | This is primarily used for testing. |
| 154 | |
| 155 | Returns: |
| 156 | |
| 157 | :class:`threading.local` |
| 158 | |
| 159 | """ |
| 160 | global _local_storage |
| 161 | |
| 162 | _shrink_cache() |
| 163 | return getattr(_local_storage, "cache", None) |