Class: Attractor::Cache

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

Class Method Summary collapse

Class Method Details

.clearObject



21
22
23
# File 'lib/attractor/cache.rb', line 21

def clear
  adapter.clear
end

.persist!Object



17
18
19
# File 'lib/attractor/cache.rb', line 17

def persist!
  adapter.persist!
end

.read(file_path:) ⇒ Object



9
10
11
# File 'lib/attractor/cache.rb', line 9

def read(file_path:)
  adapter.read(file_path: file_path)
end

.write(file_path:, value:) ⇒ Object



13
14
15
# File 'lib/attractor/cache.rb', line 13

def write(file_path:, value:)
  adapter.write(file_path: file_path, value: value)
end