Skip to content

Instantly share code, notes, and snippets.

@luckyruby
Created March 2, 2012 23:29
Show Gist options
  • Save luckyruby/1962348 to your computer and use it in GitHub Desktop.
Save luckyruby/1962348 to your computer and use it in GitHub Desktop.
$redis.multi do
for pickup in (start_pickup .. end_pickup)
rate_key = key(params[:location], @ratecode.code, params[:cartype], date)
$redis.hmset rate_key, "base_rate", params[:base_rate], "rate_plan", @ratecode.rate_plan.code, "xday_rate", xday_rate, "xhr_rate", xhr_rate
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment