Class: Startback::Caching::NoStore

Inherits:
Object
  • Object
show all
Defined in:
lib/startback/caching/no_store.rb

Overview

Caching store implementation that caches nothing at all.

Instance Method Summary collapse

Constructor Details

#initializeNoStore

Returns a new instance of NoStore.



8
9
# File 'lib/startback/caching/no_store.rb', line 8

def initialize
end

Instance Method Details

#delete(key) ⇒ Object



23
24
# File 'lib/startback/caching/no_store.rb', line 23

def delete(key)
end

#exist?(key) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/startback/caching/no_store.rb', line 11

def exist?(key)
  false
end

#get(key) ⇒ Object



15
16
17
# File 'lib/startback/caching/no_store.rb', line 15

def get(key)
  nil
end

#set(key, value, ttl) ⇒ Object



19
20
21
# File 'lib/startback/caching/no_store.rb', line 19

def set(key, value, ttl)
  value
end