lru 1.0.3 copy "lru: ^1.0.3" to clipboard
lru: ^1.0.3 copied to clipboard

Cache based on least recently used eviction strategy with additional typed data support and weak cache layer.

1.0.3 #

  • Ensure that linked list and map of LruCache stays in sync when updating keys (thanks to @miguel-montes).
  • Prevent LruTypedDataCache increasing lengthInBytes when replacing element with the same one.
  • Formatting and docs update.

1.0.2 #

  • Prevent infinite loop when LruTypedDataCache is incorrectly used with negative capacity.
  • Allow suboptimal caches with zero capacity. (Changed debug assertion. In release mode zero and negative capacities will result in useless cache, but won't crash the app nonetheless).
  • Update and add missing docs.
  • Update license years.

1.0.1 #

  • Explicitly return null to pass static checks.

1.0.0 #

  • Initial version.
3
likes
150
points
105
downloads

Publisher

verified publishernull.moe

Weekly Downloads

Cache based on least recently used eviction strategy with additional typed data support and weak cache layer.

Repository (GitHub)
View/report issues

Topics

#cache #lru #data-structures

Documentation

API reference

License

ISC (license)

Dependencies

meta, weak_cache

More

Packages that depend on lru