Sha256: 0df6be83c53eb5156fe97bac566e18f42920f9228ae5b7cbf0ba6320a2cf55f7

Contents?: true

Size: 686 Bytes

Versions: 5

Compression:

Stored size: 686 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
infopark_cloud_connector-6.8.0.356.19698103 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.0.348.160665197 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.0.328.4a753fc lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.0.322.c003f11 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.0.210.ed204b0 lib/rails_connector/cms_backend.rb