Class: Kabutops::Adapters::Redis

Inherits:
DatabaseAdapter show all
Includes:
Extensions::Parameterable
Defined in:
lib/kabutops/adapters/redis.rb

Instance Attribute Summary

Attributes inherited from DatabaseAdapter

#recipe

Instance Method Summary collapse

Methods included from Extensions::Includable

#append_features, #included

Methods inherited from DatabaseAdapter

#data, #process

Methods included from Extensions::CallbackSupport

#callbacks, #notify

Methods included from Extensions::Logging

#logger

Methods inherited from Base

#debug, #enable_debug, #initialize

Constructor Details

This class inherits a constructor from Kabutops::Adapters::Base

Instance Method Details

#nested?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/kabutops/adapters/redis.rb', line 16

def nested?
  true
end

#store(result) ⇒ Object



12
13
14
# File 'lib/kabutops/adapters/redis.rb', line 12

def store result
  client[result[:id]] = JSON.dump(result.to_hash)
end