Module: SolidCacheMongoid::Store::Connections
- Included in:
- SolidCacheMongoid::Store
- Defined in:
- lib/solid_cache_mongoid/store/connections.rb
Instance Method Summary collapse
- #connections ⇒ Object
- #initialize(options = {}) ⇒ Object
- #with_each_connection(async: false, &block) ⇒ Object
Instance Method Details
#connections ⇒ Object
18 19 20 |
# File 'lib/solid_cache_mongoid/store/connections.rb', line 18 def connections @connections ||= SolidCacheMongoid::Connections.from_config end |
#initialize(options = {}) ⇒ Object
6 7 8 |
# File 'lib/solid_cache_mongoid/store/connections.rb', line 6 def initialize( = {}) super() end |
#with_each_connection(async: false, &block) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/solid_cache_mongoid/store/connections.rb', line 10 def with_each_connection(async: false, &block) return enum_for(:with_each_connection) unless block_given? connections.with_each do execute(async, &block) end end |