(ns metabase-enterprise.cache.config
  (:require [metabase.public-settings.premium-features :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"})