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
18 19 20 |
# File 'lib/solid_cache/connections/unmanaged.rb', line 18 def assign(keys) { default: keys } end |
#count ⇒ Object
22 23 24 |
# File 'lib/solid_cache/connections/unmanaged.rb', line 22 def count 1 end |
#names ⇒ Object
26 27 28 |
# File 'lib/solid_cache/connections/unmanaged.rb', line 26 def names [ :default ] end |
#with(name) ⇒ Object
10 11 12 |
# File 'lib/solid_cache/connections/unmanaged.rb', line 10 def with(name) yield end |
#with_connection_for(key) ⇒ Object
14 15 16 |
# File 'lib/solid_cache/connections/unmanaged.rb', line 14 def with_connection_for(key) yield end |
#with_each ⇒ Object
4 5 6 7 8 |
# File 'lib/solid_cache/connections/unmanaged.rb', line 4 def with_each return enum_for(:with_each) unless block_given? yield end |