Skip to content

Commit 4470da9

Browse files
Update README.md
1 parent 0131971 commit 4470da9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Lrujs is a fast and lightweight lru (least-recently-used) caching library for ja
99
In LRU (least-recently-used) cache, when new data is added and if cache if full, it will automatically removes the least recently used data from cache and insert the new data in the cache.
1010

1111
Lrujs support TTL (Time to live) and max cache size feature.
12-
The default value for maxSize is 1000 and TTL is 0 milliseconds (0 means permanently), if you not set the max cache size and ttl then the default values are used.
12+
The default value for maxSize is 1000 and for TTL is 0 milliseconds (0 means permanently), if you will not set the max cache size and ttl then default values will be used.
1313

1414
Lrujs support TTL, but it is not a TTL cache, and also does not make strong TTL guarantees. Lrujs will not removes the expired items from cache periodically, but you can set the default TTL on cache or on a single value. If you do so, it will treat expired items as missing, and delete them when they are fetched.
1515

@@ -18,6 +18,7 @@ Lrujs support TTL, but it is not a TTL cache, and also does not make strong TTL
1818
- Super Fast
1919
- Lightweight
2020
- TTL support
21+
- Customised return value
2122

2223
## Installation
2324

0 commit comments

Comments
 (0)