store/[org.clojure/clojure "1.8.0"] clj::clojure.core/ref-history-count

Official Documentation

Add notes
Arities
==================================================
   [ref]

Docstring
==================================================
  Returns the history count of a ref

Source

(defn ref-history-count
  "Returns the history count of a ref"
  {:added "1.1"
   :static true}
  [^clojure.lang.Ref ref]
    (.getHistoryCount ref))

Example 1

Edit
(def store (ref {}))
;; => #'user/store

(ref-history-count store)
;; => 0

(ref-max-history store)
;; => 10

(ref-min-history store)
;; => 0

Uses on crossclj