diff options
Diffstat (limited to 'api/pl.treksoft.kvision.utils/-cache/set.html')
-rw-r--r-- | api/pl.treksoft.kvision.utils/-cache/set.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/api/pl.treksoft.kvision.utils/-cache/set.html b/api/pl.treksoft.kvision.utils/-cache/set.html new file mode 100644 index 00000000..1d3c6baa --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-cache/set.html @@ -0,0 +1,16 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>Cache.set - 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="./set.html">set</a><br/> +<br/> +<h1>set</h1> +<a name="pl.treksoft.kvision.utils.Cache$set(pl.treksoft.kvision.utils.Cache.K, pl.treksoft.kvision.utils.Cache.V)"></a> +<code><span class="keyword">operator</span> <span class="keyword">fun </span><span class="identifier">set</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$set(pl.treksoft.kvision.utils.Cache.K, pl.treksoft.kvision.utils.Cache.V)/key">key</span><span class="symbol">:</span> <a href="index.html#K"><span class="identifier">K</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$set(pl.treksoft.kvision.utils.Cache.K, pl.treksoft.kvision.utils.Cache.V)/value">value</span><span class="symbol">:</span> <a href="index.html#V"><span class="identifier">V</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="index.html#K"><span class="identifier">K</span></a><span class="symbol">?</span></code> +<p><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-hash-map/index.html">HashMap</a> put and remove is O(1). +More info: https://stackoverflow.com/a/4578039/2085356</p> +</BODY> +</HTML> |