Class: Ask::Agent::Persistence::InMemory

Inherits:
Base
  • Object
show all
Defined in:
lib/ask/agent/persistence/in_memory.rb

Overview

In-memory session persistence. Backed by State::Memory. Data is lost when the process exits.

Constant Summary

Constants inherited from Base

Base::INDEX_KEY, Base::KEY_PREFIX

Instance Attribute Summary

Attributes inherited from Base

#state

Instance Method Summary collapse

Methods inherited from Base

#delete, #list, #load, #save

Constructor Details

#initializeInMemory

Returns a new instance of InMemory.



9
10
11
# File 'lib/ask/agent/persistence/in_memory.rb', line 9

def initialize
  super(state_adapter: Ask::State::Memory.new)
end