Return the cache class for the given size.
(size)
| 58 | |
| 59 | |
| 60 | def create_cache(size): |
| 61 | """Return the cache class for the given size.""" |
| 62 | if size == 0: |
| 63 | return None |
| 64 | if size < 0: |
| 65 | return {} |
| 66 | return LRUCache(size) |
| 67 | |
| 68 | |
| 69 | def copy_cache(cache): |