def test_cache_maxsizeAndCurrsize(self):
        """Test the maxsize and currsize properties for both cache types."""
        for cache_type, cache in self.caches.items():
            with self.subTest(cache_type=cache_type):
                self.assertEqual(cache.maxsize, 2, f"{cache_type} Maxsize property incorrect.")
                cache.set('key1', 'value1')
                cache.set('key2', 'value2')
                self.assertEqual(cache.currsize, 2, f"{cache_type} Currsize property incorrect after adding items.")
Test the maxsize and currsize properties for both cache types.
tests/integ_tests/core/inference/test_cache.py