Class: Watson::Conversation::Redis
- Inherits:
-
Redis
- Object
- Redis
- Watson::Conversation::Redis
- Defined in:
- lib/watson/conversation.rb
Instance Method Summary collapse
Instance Method Details
#delete(user) ⇒ Object
105 106 107 |
# File 'lib/watson/conversation.rb', line 105 def delete(user) del(user) end |
#fetch(user) ⇒ Object
95 96 97 |
# File 'lib/watson/conversation.rb', line 95 def fetch(user) JSON.parse(get(user)) end |
#has_key?(user) ⇒ Boolean
110 111 112 |
# File 'lib/watson/conversation.rb', line 110 def has_key?(user) exists(user) end |
#store(user, data) ⇒ Object
100 101 102 |
# File 'lib/watson/conversation.rb', line 100 def store(user, data) set(user, data.to_json) end |