streamr-dev / network

Monorepo containing all the main components of Streamr Network.
574 stars 38 forks source link

refactor(sdk): Convert `CacheAsyncFn` to class #2871

Closed teogeb closed 4 days ago

teogeb commented 4 days ago

Converted the utility function to a class and renamed it to CachingMap. Renamed clearMatching() to invalidate() and reordered generics.

Also renamed StreamRegistry#clearStreamCache().

Future improvements

Do we need multiple caching classes: CachingMap, Mapping and Cache?