Module: Mittsu::Cache
- Defined in:
- lib/mittsu/loaders/cache.rb
Constant Summary collapse
- @@files =
{}
Class Method Summary collapse
Class Method Details
.add(key, file) ⇒ Object
5 6 7 |
# File 'lib/mittsu/loaders/cache.rb', line 5 def self.add(key, file) @@files[key] = file end |
.clear ⇒ Object
17 18 19 |
# File 'lib/mittsu/loaders/cache.rb', line 17 def self.clear @@files.clear end |
.get(key) ⇒ Object
9 10 11 |
# File 'lib/mittsu/loaders/cache.rb', line 9 def self.get(key) @@files[key] end |
.remove(key) ⇒ Object
13 14 15 |
# File 'lib/mittsu/loaders/cache.rb', line 13 def self.remove(key) @@files.delete(key) end |