Skip to content

Commit

Permalink
Release 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Tang committed May 11, 2020
1 parent f0a204b commit e7c2c67
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ <h1 class="title">lrucache</h1>
title="getOrDefault[K, T](cache: LRUCache[K, T]; key: K; val: T): T"><wbr />get<wbr />Or<wbr />Default<span class="attachedType">LRUCache</span></a></li>
<li><a class="reference" href="#getOrPut%2CLRUCache%5BK%2CT%5D%2CK%2CT"
title="getOrPut[K, T](cache: LRUCache[K, T]; key: K; val: T): T"><wbr />get<wbr />Or<wbr />Put<span class="attachedType">LRUCache</span></a></li>
<li><a class="reference" href="#getOption%2CLRUCache%5BK%2CT%5D%2CK"
title="getOption[K, T](cache: LRUCache[K, T]; key: K): Option[T]"><wbr />get<wbr />Option<span class="attachedType">LRUCache</span></a></li>
<li><a class="reference" href="#isEmpty%2CLRUCache%5BK%2CT%5D"
title="isEmpty[K, T](cache: LRUCache[K, T]): bool"><wbr />is<wbr />Empty<span class="attachedType">LRUCache</span></a></li>
<li><a class="reference" href="#isFull%2CLRUCache%5BK%2CT%5D"
Expand Down Expand Up @@ -270,6 +272,13 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>

Similar to <tt class="docutils literal"><span class="pre">get</span></tt>, but put and return <tt class="docutils literal"><span class="pre">val</span></tt> if <tt class="docutils literal"><span class="pre">key</span></tt> is not in <tt class="docutils literal"><span class="pre">cache</span></tt>

</dd>
<a id="getOption,LRUCache[K,T],K"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getOption%2CLRUCache%5BK%2CT%5D%2CK"><span class="Identifier">getOption</span></a><span class="Other">[</span><span class="Identifier">K</span><span class="Other">,</span> <span class="Identifier">T</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">cache</span><span class="Other">:</span> <a href="lrucache.html#LRUCache"><span class="Identifier">LRUCache</span></a><span class="Other">[</span><span class="Identifier">K</span><span class="Other">,</span> <span class="Identifier">T</span><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">key</span><span class="Other">:</span> <span class="Identifier">K</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Option</span><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span></pre></dt>
<dd>

Similar to <tt class="docutils literal"><span class="pre">get</span></tt>, but return <tt class="docutils literal"><span class="pre">None</span></tt> if <tt class="docutils literal"><span class="pre">key</span></tt> is not in <tt class="docutils literal"><span class="pre">cache</span></tt> or else return <tt class="docutils literal"><span class="pre">Some(value)</span></tt> and update recentness

</dd>
<a id="isEmpty,LRUCache[K,T]"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isEmpty%2CLRUCache%5BK%2CT%5D"><span class="Identifier">isEmpty</span></a><span class="Other">[</span><span class="Identifier">K</span><span class="Other">,</span> <span class="Identifier">T</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">cache</span><span class="Other">:</span> <a href="lrucache.html#LRUCache"><span class="Identifier">LRUCache</span></a><span class="Other">[</span><span class="Identifier">K</span><span class="Other">,</span> <span class="Identifier">T</span><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span></pre></dt>
Expand All @@ -295,7 +304,7 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2020-05-07 16:09:57 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2020-05-11 10:11:40 UTC</small>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion lrucache.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "1.0.1"
version = "1.0.2"
author = "Jack Tang"
description = "Least recently used (LRU) cache"
license = "MIT"
Expand Down

0 comments on commit e7c2c67

Please sign in to comment.