Module: DevSuite::Utils::Store
- Defined in:
- lib/dev_suite/utils/store.rb,
lib/dev_suite/utils/store/store.rb,
lib/dev_suite/utils/store/config.rb,
lib/dev_suite/utils/store/driver.rb,
lib/dev_suite/utils/store/driver/base.rb,
lib/dev_suite/utils/store/driver/file.rb,
lib/dev_suite/utils/store/config/config.rb,
lib/dev_suite/utils/store/driver/driver.rb,
lib/dev_suite/utils/store/driver/memory.rb,
lib/dev_suite/utils/store/config/configuration.rb
Defined Under Namespace
Modules: Config, Driver Classes: Store
Class Method Summary collapse
-
.create(**options) ⇒ Object
Create a new store instance (isolated from the singleton).
-
.instance ⇒ Object
Retrieve the singleton store instance.
-
.reset! ⇒ Object
Reset the singleton store instance.
Class Method Details
.create(**options) ⇒ Object
Create a new store instance (isolated from the singleton)
65 66 67 |
# File 'lib/dev_suite/utils/store/store.rb', line 65 def create(**) Store.new(**) end |
.instance ⇒ Object
Retrieve the singleton store instance
55 56 57 |
# File 'lib/dev_suite/utils/store/store.rb', line 55 def instance @store ||= Store.new end |
.reset! ⇒ Object
Reset the singleton store instance
60 61 62 |
# File 'lib/dev_suite/utils/store/store.rb', line 60 def reset! @store = nil end |