Class: Drydock::ObjectCaches::Base
- Inherits:
-
Object
- Object
- Drydock::ObjectCaches::Base
show all
- Defined in:
- lib/drydock/object_caches/base.rb
Instance Method Summary
collapse
Instance Method Details
#clear ⇒ Object
6
7
8
|
# File 'lib/drydock/object_caches/base.rb', line 6
def clear
raise NotImplementedError, '#clear must be overridden in the subclass'
end
|
#fetch(key, &blk) ⇒ Object
10
11
12
|
# File 'lib/drydock/object_caches/base.rb', line 10
def fetch(key, &blk)
raise NotImplementedError, '#fetch must be overridden in the subclass'
end
|
#get(key, &blk) ⇒ Object
14
15
16
|
# File 'lib/drydock/object_caches/base.rb', line 14
def get(key, &blk)
raise NotImplementedError, '#get must be overridden in the subclass'
end
|
#set(key, value = nil, &blk) ⇒ Object
18
19
20
|
# File 'lib/drydock/object_caches/base.rb', line 18
def set(key, value = nil, &blk)
raise NotImplementedError, '#set must be overridden in the subclass'
end
|