lib/progressrus/store/redis.rb in progressrus-0.1.2 vs lib/progressrus/store/redis.rb in progressrus-0.1.3
- old
+ new
@@ -17,10 +17,10 @@
if outdated?(progress) || force
key_for_scope = key(progress.scope)
redis.pipelined do
redis.hset(key_for_scope, progress.id, progress.to_serializeable.to_json)
- redis.expireat(key_for_scope, expires_at) if expires_at
+ redis.expireat(key_for_scope, expires_at.to_i) if expires_at
end
@persisted_ats[progress.scope][progress.id] = now
end
rescue *BACKEND_EXCEPTIONS => e