memoized 2.2.3
memoized: ^2.2.3 copied to clipboard
Decorators to cache returned values, it helps in reducing the execution time of the function by using LRU Caching.
2.2.3 #
2.2.2 #
Adding Notes on Memoized
: #
- Explain the issue of ineffective caching when creating
Memoized
instances as function variables. - Present the correct approach of creating and storing a
Memoized
instance. - Provide code examples to illustrate both approaches.
2.2.1 #
- Fix bug in expire() method: set _status to expired instead of comparing
2.2.0 #
- Add new methods to Memoized.
isExpired
,isNotComputedYet
,isComputed
2.1.0 #
- Removed the
to_string_pretty
package from the dependencies. - Follows Dart file conventions
- Improves the document.
2.0.0 #
Breaking Changes #
- Updated the Dart SDK to version '>=3.0.0 <4.0.0'
- Migration to Dart 3.0's Record Feature: Transitioned the data structures to cache arguments from the
tuples
package to the new Record feature introduced in Dart 3.0.
1.5.0 #
- Breaking: remove the deprecated methods
Memoized.update
andMemoized.requestUpdate
.
1.4.7 #
- Replace LRUCache with quiver.collection.LruMap
1.4.2 #
- Update package description.
1.4.0 #
- Remove: MemoizedAsync
- Add
- Memoized 2, 3, 4, 5
- MemoizedN.expireAll()
1.0.0 #
- Initial version.