Sha256: 24aa5803b3a2d03753ca756e775cb8cb14a615f21a013ac63cd5869b1ba5b8c4
Contents?: true
Size: 874 Bytes
Versions: 2
Compression:
Stored size: 874 Bytes
Contents
require_relative './caching/base' require_relative './caching/no_cache' require_relative './caching/rails_cache' module CloudSesame module Domain module ClientModule module Caching def caching_with(caching_module) unrecognized_caching_module if !module_defined?(caching_module) self.executor = module_get(caching_module) end def executor @executor ||= Caching::NoCache.new(aws_client, @searchable) end def executor=(executor) @executor = executor.new(aws_client, @searchable) end private def module_defined?(caching_module) ClientModule::Caching.const_defined? caching_module end def module_get(caching_module) ClientModule::Caching.const_get caching_module end def unrecognized_caching_module raise Error::Caching, "Unrecognized Caching Module" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
CloudSesame-0.6.5 | lib/cloud_sesame/domain/client_module/caching.rb |
CloudSesame-0.6.4 | lib/cloud_sesame/domain/client_module/caching.rb |