module Authz::Cache

This module is a wrapper of Rails.cache and serves as a central point for configuring how Authz's internal Cache works depending on the gem's configuration @api private

Public Class Methods

fetch(name, options = nil, &block) click to toggle source
# File lib/authz/cache.rb, line 8
def self.fetch(name, options = nil, &block)
  if Authz.cross_request_caching
    Rails.cache.fetch(name, options, &block)
  else
    block.call
  end
end