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



18
19
20
# File 'lib/solid_cache/connections/unmanaged.rb', line 18

def assign(keys)
  { default: keys }
end

#countObject



22
23
24
# File 'lib/solid_cache/connections/unmanaged.rb', line 22

def count
  1
end

#namesObject



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_eachObject



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