Class: RailsIdle::Storage::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rails-idle/storage/base.rb

Direct Known Subclasses

RailsCache

Instance Method Summary collapse

Instance Method Details

#add(path, execution_time = nil) ⇒ Object



5
6
7
# File 'lib/rails-idle/storage/base.rb', line 5

def add(path, execution_time = nil)
  add_to_list path
end

#get(path, key) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/rails-idle/storage/base.rb', line 9

def get(path, key)
  raise NotImplementedError
end

#objects_listObject



17
18
19
# File 'lib/rails-idle/storage/base.rb', line 17

def objects_list
  @objects_list ||= empty_list
end

#reset(path) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/rails-idle/storage/base.rb', line 13

def reset(path)
  raise NotImplementedError
end