Sha256: 5c677a52199e619d0fdc2b7b51fe842ecc6146e7d237a850b04dc755f4b0ae42

Contents?: true

Size: 827 Bytes

Versions: 5

Compression:

Stored size: 827 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Common
    module Plugins
      module HasInternals
        module Entities
          class Internals
            module Plugins
              ##
              # @internal
              #   TODO: Consider to refactor into common plugin?
              #
              module HasCache
                module Concern
                  include Support::Concern

                  instance_methods do
                    ##
                    # @return [ConvenientService::Support::Cache]
                    #
                    def cache
                      @cache ||= Support::Cache.create(backend: :hash)
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
convenient_service-0.17.0 lib/convenient_service/common/plugins/has_internals/entities/internals/plugins/has_cache/concern.rb
convenient_service-0.16.0 lib/convenient_service/common/plugins/has_internals/entities/internals/plugins/has_cache/concern.rb
convenient_service-0.15.0 lib/convenient_service/common/plugins/has_internals/entities/internals/plugins/has_cache/concern.rb
convenient_service-0.14.0 lib/convenient_service/common/plugins/has_internals/entities/internals/plugins/has_cache/concern.rb
convenient_service-0.13.0 lib/convenient_service/common/plugins/has_internals/entities/internals/plugins/has_cache/concern.rb