Clojure API for generic persistence.