Method: Insight::Database::RequestDataClient#store
- Defined in:
- lib/insight/database.rb
#store(env, *keys_and_value) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/insight/database.rb', line 19 def store(env, *keys_and_value) return if env.nil? request_id = env["insight.request-id"] return if request_id.nil? value = keys_and_value[-1] keys = keys_and_value[0...-1] @table.store(request_id, value, @key_sql_template % keys) end |