Class: Resourceful::NullCacheManager

Inherits:
AbstractCacheManager show all
Defined in:
lib/resourceful/cache_manager.rb

Overview

This is the default cache, and does not do any caching. All lookups result in nil, and all attempts to store a response are a no-op.

Instance Method Summary collapse

Methods inherited from AbstractCacheManager

#invalidate

Constructor Details

#initializeNullCacheManager

Returns a new instance of NullCacheManager.



54
# File 'lib/resourceful/cache_manager.rb', line 54

def initialize; end

Instance Method Details

#lookup(request) ⇒ Object



56
57
58
# File 'lib/resourceful/cache_manager.rb', line 56

def lookup(request)
  nil
end

#store(request, response) ⇒ Object



60
# File 'lib/resourceful/cache_manager.rb', line 60

def store(request, response); end