Skip to content

Commit

Permalink
remove :old-duration and add :verbose? options; alpha release
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Jul 12, 2020
1 parent 8fb3280 commit 8b58d93
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 119 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Function memoization sulotion for Cumulo and Respo
[![Clojars Project](https://img.shields.io/clojars/v/cumulo/memof.svg)](https://clojars.org/cumulo/memof)

```edn
[cumulo/memof "0.2.0-a1"]
[cumulo/memof "0.2.0-a3"]
```

```clojure
Expand Down Expand Up @@ -38,9 +38,9 @@ States structure:
}
}
:gc { ; configurations
:cold-duration 400, ; wait for N loops before triggering GC
:trigger-loop 100, ; trigger GC every N loops
:elapse-loop 50 ; entries are considered unuseful after not used for N loops
:verbose? false ; println more logs during GC
}
}
```
Expand All @@ -54,6 +54,7 @@ Methods:
* `(new-loop! *states)` loop and trigger actions
* `(perform-gc! *states)` remove entries that are probably no longer useful
* `(reset-entries! *states)` clear entries
* `(modify-gc-options! *states {})` modify GC options

### Macros usage

Expand Down
Loading

0 comments on commit 8b58d93

Please sign in to comment.