Class: SolidCache::Connections::Unmanaged
- Inherits:
-
Object
- Object
- SolidCache::Connections::Unmanaged
- Defined in:
- lib/solid_cache/connections/unmanaged.rb
Instance Method Summary collapse
- #assign(keys) ⇒ Object
- #count ⇒ Object
- #names ⇒ Object
- #with(name) ⇒ Object
- #with_connection_for(key) ⇒ Object
- #with_each ⇒ Object
Instance Method Details
#assign(keys) ⇒ Object
20 21 22 |
# File 'lib/solid_cache/connections/unmanaged.rb', line 20 def assign(keys) { default: keys } end |
#count ⇒ Object
24 25 26 |
# File 'lib/solid_cache/connections/unmanaged.rb', line 24 def count 1 end |
#names ⇒ Object
28 29 30 |
# File 'lib/solid_cache/connections/unmanaged.rb', line 28 def names [ :default ] end |
#with(name) ⇒ Object
12 13 14 |
# File 'lib/solid_cache/connections/unmanaged.rb', line 12 def with(name) yield end |
#with_connection_for(key) ⇒ Object
16 17 18 |
# File 'lib/solid_cache/connections/unmanaged.rb', line 16 def with_connection_for(key) yield end |
#with_each ⇒ Object
6 7 8 9 10 |
# File 'lib/solid_cache/connections/unmanaged.rb', line 6 def with_each return enum_for(:with_each) unless block_given? yield end |