Class: Renderful::Cache::Null

Inherits:
Base
  • Object
show all
Defined in:
lib/renderful/cache/null.rb

Instance Method Summary collapse

Instance Method Details

#delete(*keys) ⇒ Object



18
19
20
# File 'lib/renderful/cache/null.rb', line 18

def delete(*keys)
  # noop
end

#delete_matched(pattern) ⇒ Object



22
23
24
# File 'lib/renderful/cache/null.rb', line 22

def delete_matched(pattern)
  # noop
end

#exist?(_key) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/renderful/cache/null.rb', line 6

def exist?(_key)
  false
end

#fetch(_key) ⇒ Object



26
27
28
# File 'lib/renderful/cache/null.rb', line 26

def fetch(_key)
  yield
end

#read(_key) ⇒ Object



10
11
12
# File 'lib/renderful/cache/null.rb', line 10

def read(_key)
  nil
end

#write(key, value) ⇒ Object



14
15
16
# File 'lib/renderful/cache/null.rb', line 14

def write(key, value)
  # noop
end