Skip to content

Conversation

@neoz
Copy link
Contributor

@neoz neoz commented Apr 25, 2025

This pull request introduces caching and pagination to improve the efficiency and scalability of the jadx_mcp_server.py module. It adds a caching mechanism to reduce redundant API calls and implements pagination in several methods to handle large datasets more effectively.

Caching Mechanism:

  • Introduced a caching system with a configurable expiry time (CACHE_EXPIRY) to store and retrieve data for frequently accessed operations. Helper functions _get_from_cache, _set_cache, and _clear_cache were added to manage the cache.

Pagination Support:

  • Updated the following methods to include optional offset and count parameters, enabling paginated retrieval of data:

Improved Data Handling:

  • Enhanced the handling of API responses by adding JSON parsing and error handling to ensure robustness when processing data.
@zinja-coder zinja-coder merged commit 4ea2cff into zinja-coder:main Apr 26, 2025
@zinja-coder
Copy link
Owner

@neoz thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants