Class: EOAT::Cache::NoneCache

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

Overview

NoneCache - fake cache class. The default cache handler.

Author:

Instance Method Summary collapse

Instance Method Details

#get(host, uri) ⇒ FalseClass

Fake get method. Always return false

Parameters:

  • host (String)

    the request host string

  • uri (String)

    the query string

Returns:

  • (FalseClass)


14
15
16
# File 'lib/eoat/cache/none_cache.rb', line 14

def get(host, uri)
  return false
end

#save(host, uri, content) ⇒ Object

Fake save method. It does not make anything

Parameters:

  • host (String)

    the request host string

  • uri (String)

    the query string

  • content (Object)

    the result class instance



22
23
# File 'lib/eoat/cache/none_cache.rb', line 22

def save(host, uri, content)
end