filmov
tv
Rust Programming Exercises: LRU Cache

Показать описание
In this video we implement an LRU Cache (Least Recently Used) in Rust with a double linked list along side a HashMap. We make use of Smart Pointers (Weak and Reference Counters) to maintain references between nodes and the HashMap. For the LRU cache, we also add the ability to set a capacity and pop least recently used items off of the list.
**Note**:
Because we make use of weak pointers we do not necessarily have to clean up our HashMap when the cache is being used up but it is something should try and implement later by storing the key alongside the node in order to do this. Try updating our implementation to store the key as well and clean up the HashMap whenever the LRU reaches its capacity.
↠ Other Videos to Watch
↠ References:
Cheers! 🍻
🦀 #rust #rustlang #rustprogramming #exercises #programming
**Note**:
Because we make use of weak pointers we do not necessarily have to clean up our HashMap when the cache is being used up but it is something should try and implement later by storing the key alongside the node in order to do this. Try updating our implementation to store the key as well and clean up the HashMap whenever the LRU reaches its capacity.
↠ Other Videos to Watch
↠ References:
Cheers! 🍻
🦀 #rust #rustlang #rustprogramming #exercises #programming
Rust Programming Exercises: LRU Cache
LRU Cache - Twitch Interview Question - Leetcode 146
Refreshing Rust, building an LRU Cache
Coding Interview Algorithm: LRU Cache
Rust LinkedLists: Storing and Manipulating Linked Data Made Easy
LRU Cache in C Tutorial
I wrote a cache store in rust lang | Open source in Rust
Rust Programming Exercises: Bloom Filters and Bit Vectors
Rust Programming Exercises: Double Linked List
[Rust Programming] Crafting Interpreters: Day 35, Chapter 25 (final part)
Rust Programming Exercises: Autocomplete with Tries
Cache Systems Every Developer Should Know
'Lazy Defenses: Using Scaled TTLs to Keep Your Cache Correct' by Bonnie Eisenman
[Rust Programming] Crafting Interpreters: Day 33, Chapter 25 (Part 1)
Adding a cache is not as simple as it may seem...
[Rust Programming] Crafting Interpreters: Day 23, Chapter 17 (part 2) & Chapter 18 (Part 1)
Coding an Efficient LRU Cache in Golang: Part 2
How to get Rust a2s cache servers from HostEZ
@AmanDhattarwal Vs Striver Controversy | Apna College Aman Dhattarwal Shorts Facts #shorts
A Singly Linked List in Rust
Stream: Basic Redis Client in Rust
Lecture 18: LRU Cache Implementation | Doubly Linked List | SPG | JAVA
[Rust Programming] Crafting Interpreters: Day 34, Chapter 25 (Part 2)
How to implement a Calculator in Rust
Комментарии