Class: MetalArchives::Cache::Null

Inherits:
Base
  • Object
show all
Defined in:
lib/metal_archives/cache/null.rb

Overview

Null cache

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize, #validate!

Constructor Details

This class inherits a constructor from MetalArchives::Cache::Base

Instance Method Details

#[](_key) ⇒ Object



9
# File 'lib/metal_archives/cache/null.rb', line 9

def [](_key); end

#[]=(_key, _value) ⇒ Object



11
# File 'lib/metal_archives/cache/null.rb', line 11

def []=(_key, _value); end

#clearObject



13
# File 'lib/metal_archives/cache/null.rb', line 13

def clear; end

#delete(_key) ⇒ Object



19
# File 'lib/metal_archives/cache/null.rb', line 19

def delete(_key); end

#include?(_key) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/metal_archives/cache/null.rb', line 15

def include?(_key)
  false
end