We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8d1b14 commit d83e8beCopy full SHA for d83e8be
README.md
@@ -7,7 +7,7 @@
7
Lightweight and high performance concurrent cache optimized for low cache overhead.
8
9
* Small overhead compared to a concurrent hash table
10
-* Scan resistent and high hit rate caching policy
+* Scan resistant and high hit rate caching policy
11
* User defined weight per item
12
* Scales well with the number of threads
13
* Atomic operations with `get_or_insert` and `get_value_or_guard` functions
@@ -31,7 +31,7 @@ Basic usage
31
use quick_cache::unsync::Cache;
32
33
fn main() {
34
- let cache = Cache::new(5);
+ let mut cache = Cache::new(5);
35
cache.insert("square", "blue");
36
cache.insert("circle", "black");
37
assert_eq!(*cache.get(&"square").unwrap(), "blue");
0 commit comments