@hiero-did-sdk/cache
v0.1.7
Published
This package provides caching utilities for the Hiero DID SDK JS.
Readme
@hiero-did-sdk/cache
This package provides caching utilities for the Hiero DID SDK JS. It implements Least Recently Used (LRU) memory cache to improve performance by reducing redundant operations and network calls.
Features
- LRU Memory Cache: Implements an efficient Least Recently Used (LRU) caching strategy.
- TypeScript Support: Built with TypeScript to enhance developer experience and code maintainability.
Installation
Install the package via npm:
npm install @hiero-did-sdk/cacheUsage
Learn how to use the LRUMemoryCache in the Usage Guide.
API Reference
See detailed API specifications and available methods in the API Reference.
Running Tests
Unit tests are included to validate functionality. Run tests with:
npm testLicense
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
References
- Hiero DID SDK - The official repository for the Hashgraph DID SDK, containing the complete source code and documentation.
- LRU Cache Algorithm - Information about the Least Recently Used cache replacement policy implemented in this package.
