Method: Taskinator::Persistence::InstanceMethods#cleanup
- Defined in:
- lib/taskinator/persistence.rb
#cleanup(expire_in = EXPIRE_IN) ⇒ Object
214 215 216 217 218 219 220 221 222 223 224 |
# File 'lib/taskinator/persistence.rb', line 214 def cleanup(expire_in=EXPIRE_IN) Taskinator.redis do |conn| # use the "clean up" visitor RedisCleanupVisitor.new(conn, self, expire_in).visit # remove from the list conn.srem(Persistence.processes_list_key(scope), uuid) end end |