-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to use memof-call; bump 0.6.4
- Loading branch information
Showing
12 changed files
with
143 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
:paths ["src" "polyfill"] | ||
:paths ["src"] | ||
:deps { | ||
cumulo/memof {:mvn/version "0.2.3"} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{:version "0.6.3", | ||
{:version "0.6.4", | ||
:group-id "cumulo", | ||
:artifact-id "recollect", | ||
:skip-tag true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
(ns recollect.app.twig.card (:require [recollect.twig :refer [deftwig]])) | ||
(ns recollect.app.twig.card (:require )) | ||
|
||
(deftwig twig-card (user date) {:user user, :date date}) | ||
(defn twig-card [user date] {:user user, :date date}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
|
||
(ns recollect.app.twig.container | ||
(:require [recollect.app.twig.card :refer [twig-card]] [recollect.twig :refer [deftwig]])) | ||
(ns recollect.app.twig.container (:require [recollect.app.twig.card :refer [twig-card]])) | ||
|
||
(deftwig | ||
twig-container | ||
(store) | ||
(merge store {:card (twig-card (:user store) (:date store))})) | ||
(defn twig-container [store] (merge store {:card (twig-card (:user store) (:date store))})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
|
||
(ns recollect.twig (:require [memof.core :as memof]) (:require-macros [recollect.twig])) | ||
(ns recollect.twig | ||
(:require [memof.core :as memof] | ||
[memof.alias | ||
:refer | ||
[*memof-call-states reset-calling-caches! tick-calling-loop!]])) | ||
|
||
(defonce *twig-caches (atom (memof/new-states {}))) | ||
(defn clear-twig-caches! [] (reset-calling-caches!)) | ||
|
||
(defn call-twig-func [f params] | ||
(let [v (memof/access-record *twig-caches f params)] | ||
(if (some? v) | ||
v | ||
(let [result (apply f params)] | ||
(memof/write-record! *twig-caches f params result) | ||
result)))) | ||
(defn new-twig-loop! [] (tick-calling-loop!)) | ||
|
||
(defn clear-twig-caches! [] (memof/reset-entries! *twig-caches)) | ||
|
||
(defn new-twig-loop! [] (memof/new-loop! *twig-caches)) | ||
|
||
(defn show-twig-summay [] (memof/show-summary @*twig-caches)) | ||
(defn show-twig-summay [] (memof/show-summary @*memof-call-states)) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.