OPTIMIZE: implement caching and pagination #4
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
This pull request introduces caching and pagination to improve the efficiency and scalability of the
jadx_mcp_server.pymodule. It adds a caching mechanism to reduce redundant API calls and implements pagination in several methods to handle large datasets more effectively.Caching Mechanism:
CACHE_EXPIRY) to store and retrieve data for frequently accessed operations. Helper functions_get_from_cache,_set_cache, and_clear_cachewere added to manage the cache.Pagination Support:
offsetandcountparameters, enabling paginated retrieval of data:get_all_classes: Fetches a paginated list of all classes.search_method_by_name: Searches for a method name across all classes with pagination.get_methods_of_class: Lists all method names in a class with pagination.get_fields_of_class: Lists all field names in a class with pagination.Improved Data Handling: