Method: Kimurai::Base::Storage#all
- Defined in:
- lib/kimurai/base/storage.rb
#all(scope = nil) ⇒ Object
11 12 13 14 15 |
# File 'lib/kimurai/base/storage.rb', line 11 def all(scope = nil) @mutex.synchronize do scope ? database.fetch(scope, []) : database end end |