summaryrefslogtreecommitdiff
path: root/api/pl.treksoft.kvision.utils/-cache/-init-.html
blob: 05af599ada2cacf6a41080bb7a9eea91a360854c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>Cache.<init> - kvision</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.utils</a>&nbsp;/&nbsp;<a href="index.html">Cache</a>&nbsp;/&nbsp;<a href="./-init-.html">&lt;init&gt;</a><br/>
<br/>
<h1>&lt;init&gt;</h1>
<a name="pl.treksoft.kvision.utils.Cache$&lt;init&gt;(kotlin.Int)"></a>
<code><span class="identifier">Cache</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$<init>(kotlin.Int)/capacity">capacity</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a>&nbsp;<span class="symbol">=</span>&nbsp;50<span class="symbol">)</span></code>
<p>This is a LRU cache that has no performance impact for cache insertions
once the capacity of the cache has been reached. For cache hit,
performance is O(1) and for cache eviction, it is O(1).</p>
</BODY>
</HTML>