Class: RSX::Cache::Null

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

Overview

Never caches. Useful in tests and for disabling caching outright.

Instance Method Summary collapse

Instance Method Details

#clearObject



99
# File 'lib/rsx/cache.rb', line 99

def clear = self

#delete(_key) ⇒ Object



98
# File 'lib/rsx/cache.rb', line 98

def delete(_key) = nil

#fetch(_key, expires_in: nil) ⇒ Object



95
# File 'lib/rsx/cache.rb', line 95

def fetch(_key, expires_in: nil) = yield

#read(_key) ⇒ Object



96
# File 'lib/rsx/cache.rb', line 96

def read(_key) = nil

#write(_key, value, expires_in: nil) ⇒ Object



97
# File 'lib/rsx/cache.rb', line 97

def write(_key, value, expires_in: nil) = value