Class: Twig::Cache::Nil

Inherits:
Base
  • Object
show all
Defined in:
lib/twig/cache/nil.rb

Instance Method Summary collapse

Instance Method Details

#generate_key(_name, _class_name) ⇒ Object



6
7
8
# File 'lib/twig/cache/nil.rb', line 6

def generate_key(_name, _class_name)
  ''
end

#load(_key) ⇒ Object



15
# File 'lib/twig/cache/nil.rb', line 15

def load(_key); end

#remove(_key) ⇒ Object



16
# File 'lib/twig/cache/nil.rb', line 16

def remove(_key); end

#timestamp(_key) ⇒ Object



10
11
12
# File 'lib/twig/cache/nil.rb', line 10

def timestamp(_key)
  0
end

#write(_key, _content) ⇒ Object



14
# File 'lib/twig/cache/nil.rb', line 14

def write(_key, _content); end