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> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">Cache</a> / <a href="./-init-.html"><init></a><br/>
<br/>
<h1><init></h1>
<a name="pl.treksoft.kvision.utils.Cache$<init>(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> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a> <span class="symbol">=</span> 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>
|