Class: ModelIterator::NullRedis

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

Overview

Pass this to ModelIterator if you don’t want to store state anywhere.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.newObject



236
237
238
# File 'lib/model_iterator.rb', line 236

def self.new
  @instance
end

Instance Method Details

#del(key) ⇒ Object



247
248
# File 'lib/model_iterator.rb', line 247

def del(key)
end

#get(key) ⇒ Object



240
241
242
# File 'lib/model_iterator.rb', line 240

def get(key)
  0
end

#set(key, value) ⇒ Object



244
245
# File 'lib/model_iterator.rb', line 244

def set(key, value)
end