Advertisement
Guest User

Untitled

a guest
Oct 27th, 2015
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. require 'redis'
  2.  
  3. redis = Redis.new(:host => "HOST", :port => 6379, :db => 15)
  4. redis.set "last_update", Time.now.to_i
  5. puts redis.get("last_update")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement