module RailsConnector class CmsBackend def self.current @current ||= begin RailsConnector::Configuration.content_service ? ServiceCmsBackend.new : DynamoCmsBackend.new end end def self.begin_caching current.begin_caching end def self.end_caching current.end_caching end def self.find_obj_data_by(workspace_data, index, keys) current.find_obj_data_by(workspace_data, index, keys) end def self.find_workspace_data_by_id(id) current.find_workspace_data_by_id(id) end def self.caching? current.caching? end def self.query_counter current.query_counter end end end