From e7c2c67a8e564ee2f467d2f56adb5f0539bb0227 Mon Sep 17 00:00:00 2001 From: Jack Tang Date: Mon, 11 May 2020 18:11:40 +0800 Subject: [PATCH] Release 1.0.2 --- docs/index.html | 11 ++++++++++- lrucache.nimble | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 22802e4..8f39b6d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -139,6 +139,8 @@

lrucache

title="getOrDefault[K, T](cache: LRUCache[K, T]; key: K; val: T): T">getOrDefaultLRUCache
  • getOrPutLRUCache
  • +
  • getOptionLRUCache
  • isEmptyLRUCache
  • Procs Similar to get, but put and return val if key is not in cache + + +
    proc getOption[K, T](cache: LRUCache[K, T]; key: K): Option[T]
    +
    + +Similar to get, but return None if key is not in cache or else return Some(value) and update recentness +
    proc isEmpty[K, T](cache: LRUCache[K, T]): bool
    @@ -295,7 +304,7 @@

    Procs

    diff --git a/lrucache.nimble b/lrucache.nimble index 1c8e637..bf3ca03 100644 --- a/lrucache.nimble +++ b/lrucache.nimble @@ -1,6 +1,6 @@ # Package -version = "1.0.1" +version = "1.0.2" author = "Jack Tang" description = "Least recently used (LRU) cache" license = "MIT"