class Rack::Idempotency::MemoryStore
Stores idempotency information in a Hash.
Attributes
store[R]
Public Class Methods
new()
click to toggle source
# File lib/rack/idempotency/memory_store.rb, line 5 def initialize @store = {} end
Public Instance Methods
read(id)
click to toggle source
# File lib/rack/idempotency/memory_store.rb, line 9 def read(id) store[id] end
write(id, value)
click to toggle source
# File lib/rack/idempotency/memory_store.rb, line 13 def write(id, value) store[id] = value end