Class: Cachew::Null

Inherits:
Adapter show all
Defined in:
lib/cachew/null.rb

Overview

Null version of Cachew. Never caches anything, and returns value of given block directly.

Constant Summary

Constants inherited from Adapter

Adapter::UNDEFINED

Class Method Summary collapse

Methods inherited from Adapter

#fetch

Class Method Details

.newNull

Returns singleton instance of Null adapter.

Returns:



10
11
12
# File 'lib/cachew/null.rb', line 10

def new
  @instance ||= super
end