 (ns coming-soon.models.contact
   (require [taoensso.carmine :as car]
-           [coming-soon.config :as config]))
+           [coming-soon.config :as config])
+  (import java.text.SimpleDateFormat
+          java.util.Calendar))
 
 ;; A Redis connection with Carmine
 (def redis-pool (car/make-conn-pool))

  "Return a vector of all the emails that have been collected so far."
  [])

;; Store the contact by email and by id
(defn store [id email referrer]
  (with-car

      {:id id 
      :email email
      :referrer referrer
      :updated-at (current-timestamp)}))
    ;; commit the transaction
    (car/exec)))

