Class: SolidCache::Connections::Unmanaged

Inherits:
Object
  • Object
show all
Defined in:
lib/solid_cache/connections/unmanaged.rb

Instance Method Summary collapse

Instance Method Details

#assign(keys) ⇒ Object



20
21
22
# File 'lib/solid_cache/connections/unmanaged.rb', line 20

def assign(keys)
  { default: keys }
end

#countObject



24
25
26
# File 'lib/solid_cache/connections/unmanaged.rb', line 24

def count
  1
end

#namesObject



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_eachObject



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