Class: Tenjin::KeyValueStore

Inherits:
Object
  • Object
show all
Defined in:
lib/tenjin.rb

Overview

abstract class for data cache (= html fragment cache)

Direct Known Subclasses

FileBaseStore, MemoryBaseStore

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



1084
1085
1086
# File 'lib/tenjin.rb', line 1084

def [](key)
  return get(key)
end

#[]=(key, value) ⇒ Object



1088
1089
1090
# File 'lib/tenjin.rb', line 1088

def []=(key, value)
  return set(key, value)
end

#del(key, *options) ⇒ Object

Raises:

  • (NotImplementedError)


1076
1077
1078
# File 'lib/tenjin.rb', line 1076

def del(key, *options)
  raise NotImplementedError.new("#{self.class.name}#del(): not implemented yet.")
end

#get(key, *options) ⇒ Object

Raises:

  • (NotImplementedError)


1068
1069
1070
# File 'lib/tenjin.rb', line 1068

def get(key, *options)
  raise NotImplementedError.new("#{self.class.name}#get(): not implemented yet.")
end

#has?(key, *options) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


1080
1081
1082
# File 'lib/tenjin.rb', line 1080

def has?(key, *options)
  raise NotImplementedError.new("#{self.class.name}#has(): not implemented yet.")
end

#set(key, value, *options) ⇒ Object

Raises:

  • (NotImplementedError)


1072
1073
1074
# File 'lib/tenjin.rb', line 1072

def set(key, value, *options)
  raise NotImplementedError.new("#{self.class.name}#set(): not implemented yet.")
end