(ns metabase-enterprise.cache.config
  (:require
   [metabase.premium-features.core :refer [defenterprise]]))

States of persisted_info records which can be refreshed.

(defenterprise refreshable-states
  :feature :cache-granular-controls
  []
  ;; meant to be the same as the oss version except that "off" is deleteable rather than refreshable
  #{"refreshing" "creating" "persisted" "error"})

States of persisted_info records which can be pruned.

(defenterprise prunable-states
  :feature :cache-granular-controls
  []
  #{"deletable" "off"})

EE Version doesn't auto-persist models like the OSS version does. So default to 'off'

(defenterprise default-persistent-info-state
  :feature :cache-granular-controls
  []
  "off")