class Masking::DataMaskProcessor::Cache
Public Class Methods
clear()
click to toggle source
onlu for test
# File lib/masking/data_mask_processor/cache.rb, line 17 def self.clear @cache = {} end
fetch_or_store_if_no_cache(table:, proc:)
click to toggle source
# File lib/masking/data_mask_processor/cache.rb, line 6 def self.fetch_or_store_if_no_cache(table:, proc:) @cache ||= {} if @cache.key?(table) @cache[table] else @cache[table] = proc.call end end