   builder)
 
 (defn build-config
-  [{:keys [locking template] :as opts}]
+  [{:keys [locking template persist] :as opts}]
   (let [builder (ConfigurationBuilder.)]
     (if template (.read builder template))
     (.classLoader builder (.getContextClassLoader (Thread/currentThread)))


(def clustered-manager (registry/get "jboss.infinispan.web"))
(def local-manager (delay (DefaultCacheManager.)))

(defn cache-mode
  [{:keys [mode sync]}]


(ns ^{:no-doc true} immutant.cache.core
    (:require [immutant.registry :as registry]
              [clojure.java.io :as io]
              [clojure.tools.logging :as log])
    (:import [org.infinispan.configuration.cache ConfigurationBuilder VersioningScheme CacheMode]
             [org.infinispan.transaction TransactionMode LockingMode]
