simple_lru_cache 0.2.2 copy "simple_lru_cache: ^0.2.2" to clipboard
simple_lru_cache: ^0.2.2 copied to clipboard

A simple Least Recently Used (LRU) cache implementation in Dart.

Changelog #

[0.2.2] - 2024-09-06 #

Added #

  • Method to get the current populated size of the cache

Updated #

  • Use getter to get the current keys of the cache

[0.2.1] - 2024-09-06 #

Added #

  • Method to retrieve all the keys
  • Method to add multiple entires at once to the cache

[0.2.0] - 2024-09-05 #

Updated #

  • Throws an exception if the key is not present in the cache rather than returning null

[0.1.0] - 2024-09-05 #

Added #

  • Initial release of the LRU Cache package.
    • LRUCache class implementation.
    • Basic methods for cache management: put, get, remove, and clear.
    • Automatic eviction of least recently used items to manage memory efficiently.
1
likes
160
pub points
19%
popularity

Publisher

unverified uploader

A simple Least Recently Used (LRU) cache implementation in Dart.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on simple_lru_cache