Module: Hitnmiss

Defined in:
lib/hitnmiss.rb,
lib/hitnmiss/driver.rb,
lib/hitnmiss/entity.rb,
lib/hitnmiss/errors.rb,
lib/hitnmiss/version.rb,
lib/hitnmiss/repository.rb,
lib/hitnmiss/driver_registry.rb,
lib/hitnmiss/in_memory_driver.rb,
lib/hitnmiss/repository/fetcher.rb,
lib/hitnmiss/repository/key_generation.rb,
lib/hitnmiss/repository/cache_management.rb,
lib/hitnmiss/repository/driver_management.rb,
lib/hitnmiss/background_refresh_repository.rb

Defined Under Namespace

Modules: BackgroundRefreshRepository, Driver, Errors, Repository Classes: DriverRegistry, Entity, InMemoryDriver

Constant Summary collapse

VERSION =
"2.1.0"

Class Method Summary collapse

Class Method Details

.driver(name) ⇒ Object



17
18
19
# File 'lib/hitnmiss.rb', line 17

def self.driver(name)
  @driver_registry.get(name)
end

.register_driver(name, driver) ⇒ Object



13
14
15
# File 'lib/hitnmiss.rb', line 13

def self.register_driver(name, driver)
  @driver_registry.register(name, driver)
end