Skip to content

Commit

Permalink
Merge pull request #19 from benhurdavies/feature/lru-clearAll-impleme…
Browse files Browse the repository at this point in the history
…ntation

adds clearAll method in lru
  • Loading branch information
TarSzator authored May 18, 2021
2 parents 1029568 + 045cb5e commit dc43127
Show file tree
Hide file tree
Showing 7 changed files with 23,594 additions and 6,790 deletions.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,51 @@ const cache = createCache({
</tr>
</table>

### Methods available on cache engines

<table>
<tr>
<th>Methods</th>
<th>LRU</th>
<th>LFU</th>
</tr>
<tr>
<td>add</td>
<td>✅</td>
<td>✅</td>
</tr>
<tr>
<td>get</td>
<td>✅</td>
<td>✅</td>
</tr>
<tr>
<td>has</td>
<td>✅</td>
<td>✅</td>
</tr>
<tr>
<td>remove</td>
<td>✅</td>
<td>✅</td>
</tr>
<tr>
<td>size</td>
<td>✅</td>
<td>✅</td>
</tr>
<tr>
<td>clearAll</td>
<td>✅</td>
<td>❌</td>
</tr>
<tr>
<td>toArray</td>
<td>✅</td>
<td>❌</td>
</tr>
</table>

### Creating Custom HashTable

When and Why you should create custom hash table?
Expand Down
Loading

0 comments on commit dc43127

Please sign in to comment.