     (elasticsearch-connection \"tmp\" :create-instances-fn load-fn)))
 ```"
   [index-name &
-   {:keys [create-instances-fn population-use set-type url mapping-type-def]
+   {:keys [create-instances-fn population-use set-type url mapping-type-def
+           cache-inst]
     :or {create-instances-fn identity
          population-use 1.0
          set-type :train

  ([id]
   (use-connection
     (with-context [instance-context]
       (->> (es/document-by-id id))))))

(defn clear
  "Clear the in memory instance data.  If key `:wipe-persistent?` is `true` all

        call [[divide-by-preset]] for the first invocation of [[instances-load]]

  * **:url** the URL to the DB (defaults to `http://localhost:9200`)
  * **:mapping-type** map type name (see ES docs)
  * **:cache-inst** an atom used to cache instances by ID; if given this
    retrieves instances from the in memory map stored in the atom; otherwise it
    goes to ElasticSearch each time

Example
-------
