Class: CloudSesame::Domain::ClientModule::Caching::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud_sesame/domain/client_module/caching/base.rb

Direct Known Subclasses

NoCache, RailsCache

Instance Method Summary collapse

Constructor Details

#initialize(client, searchable) ⇒ Base

Returns a new instance of Base.



7
8
9
10
# File 'lib/cloud_sesame/domain/client_module/caching/base.rb', line 7

def initialize(client, searchable)
  @client = client
  @searchable = searchable
end

Instance Method Details

#fetch(_params) ⇒ Object

Raises:



12
13
14
# File 'lib/cloud_sesame/domain/client_module/caching/base.rb', line 12

def fetch(_params)
  raise Error::Caching, "Caching Module needs #fetch method and accepts params"
end