File tree Expand file tree Collapse file tree
src/main/clojure/clojure/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- target
1+ .classpath
2+ .cpcache /
3+ .idea
24.lein *
3- lib
4- multi-lib
5+ .lsp /sqlite.db
56.nrepl-port
6- .idea
7- .cpcache /
7+ .project
8+ .settings
89/build.boot
10+ lib
11+ multi-lib
12+ target
Original file line number Diff line number Diff line change 579579; ; Factories
580580
581581(defn basic-cache-factory
582- " Returns a pluggable basic cache initialied to `base`"
582+ " Returns a pluggable basic cache initialized to `base`"
583583 [base]
584584 {:pre [(map? base)]}
585585 (BasicCache. base))
606606 (clojure.core.cache/seed (FIFOCache. {} clojure.lang.PersistentQueue/EMPTY threshold) base))
607607
608608(defn lru-cache-factory
609- " Returns an LRU cache with the cache and usage-table initialied to `base` --
609+ " Returns an LRU cache with the cache and usage-table initialized to `base` --
610610 each entry is initialized with the same usage value.
611611
612612 This function takes an optional `:threshold` argument that defines the maximum number
628628 (clojure.core.cache/seed (TTLCacheQ. {} {} clojure.lang.PersistentQueue/EMPTY 0 ttl) base))
629629
630630(defn lu-cache-factory
631- " Returns an LU cache with the cache and usage-table initialied to `base`.
631+ " Returns an LU cache with the cache and usage-table initialized to `base`.
632632
633633 This function takes an optional `:threshold` argument that defines the maximum number
634634 of elements in the cache before the LU semantics apply (default is 32)."
659659 {:pre [(map? base)]}
660660 (clojure.core.cache/seed (SoftCache. (ConcurrentHashMap. ) (ConcurrentHashMap. ) (ReferenceQueue. ))
661661 base))
662-
Original file line number Diff line number Diff line change 128128 (swap! cache-atom c/through-cache item wrap-fn value-fn)))
129129
130130(defn basic-cache-factory
131- " Returns a pluggable basic cache initialied to `base`"
131+ " Returns a pluggable basic cache initialized to `base`"
132132 [base]
133133 (atom (c/basic-cache-factory base)))
134134
151151 (atom (c/fifo-cache-factory base :threshold threshold)))
152152
153153(defn lru-cache-factory
154- " Returns an LRU cache with the cache and usage-table initialied to `base` --
154+ " Returns an LRU cache with the cache and usage-table initialized to `base` --
155155 each entry is initialized with the same usage value.
156156
157157 This function takes an optional `:threshold` argument that defines the maximum number
169169 (atom (c/ttl-cache-factory base :ttl ttl)))
170170
171171(defn lu-cache-factory
172- " Returns an LU cache with the cache and usage-table initialied to `base`.
172+ " Returns an LU cache with the cache and usage-table initialized to `base`.
173173
174174 This function takes an optional `:threshold` argument that defines the maximum number
175175 of elements in the cache before the LU semantics apply (default is 32)."
You can’t perform that action at this time.
0 commit comments