Class: Twig::Cache::Base

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

Direct Known Subclasses

Filesystem, Nil

Instance Method Summary collapse

Instance Method Details

#generate_key(name, class_name) ⇒ Object

Parameters:

  • name (String)
  • class_name (String)

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/twig/cache/base.rb', line 8

def generate_key(name, class_name)
  raise NotImplementedError
end

#load(key) ⇒ Boolean

Parameters:

  • key (String)

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/twig/cache/base.rb', line 20

def load(key)
  raise NotImplementedError
end

#timestamp(key) ⇒ Integer

Parameters:

  • key (String)

Returns:

  • (Integer)

Raises:

  • (NotImplementedError)


26
27
28
# File 'lib/twig/cache/base.rb', line 26

def timestamp(key)
  raise NotImplementedError
end

#write(key, content) ⇒ Object

Parameters:

  • key (String)
  • content (String)

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/twig/cache/base.rb', line 14

def write(key, content)
  raise NotImplementedError
end