Class: Tenjin::KeyValueStore
- Inherits:
-
Object
- Object
- Tenjin::KeyValueStore
show all
- Defined in:
- lib/tenjin.rb
Overview
abstract class for data cache (= html fragment cache)
Instance Method Summary
collapse
Instance Method Details
#[](key) ⇒ Object
1073
1074
1075
|
# File 'lib/tenjin.rb', line 1073
def [](key)
return get(key)
end
|
#[]=(key, value) ⇒ Object
1077
1078
1079
|
# File 'lib/tenjin.rb', line 1077
def []=(key, value)
return set(key, value)
end
|
#del(key, *options) ⇒ Object
1065
1066
1067
|
# File 'lib/tenjin.rb', line 1065
def del(key, *options)
raise NotImplementedError.new("#{self.class.name}#del(): not implemented yet.")
end
|
#get(key, *options) ⇒ Object
1057
1058
1059
|
# File 'lib/tenjin.rb', line 1057
def get(key, *options)
raise NotImplementedError.new("#{self.class.name}#get(): not implemented yet.")
end
|
#has?(key, *options) ⇒ Boolean
1069
1070
1071
|
# File 'lib/tenjin.rb', line 1069
def has?(key, *options)
raise NotImplementedError.new("#{self.class.name}#has(): not implemented yet.")
end
|
#set(key, value, *options) ⇒ Object
1061
1062
1063
|
# File 'lib/tenjin.rb', line 1061
def set(key, value, *options)
raise NotImplementedError.new("#{self.class.name}#set(): not implemented yet.")
end
|