def expire(sec)
      tasks.each { |task| task.expire(sec) }
      slaves.each { |slave| slave.expire(sec) }
      worker_logs.each { |worker_log| worker_log.expire(sec) }
      RRRSpec.redis.expire(key, sec)
      RRRSpec.redis.expire(RRRSpec.make_key(key, 'log'), sec)
      RRRSpec.redis.expire(RRRSpec.make_key(key, 'slave'), sec)
      RRRSpec.redis.expire(RRRSpec.make_key(key, 'worker_log'), sec)
      RRRSpec.redis.expire(RRRSpec.make_key(key, 'task_queue'), sec)
      RRRSpec.redis.expire(RRRSpec.make_key(key, 'tasks'), sec)
      RRRSpec.redis.expire(RRRSpec.make_key(key, 'tasks_left'), sec)
    end
def expire(sec)
      tasks.each { |task| task.expire(sec) }
      slaves.each { |slave| slave.expire(sec) }
      worker_logs.each { |worker_log| worker_log.expire(sec) }
      RRRSpec.redis.expire(key, sec)
      RRRSpec.redis.expire(RRRSpec.make_key(key, 'log'), sec)
      RRRSpec.redis.expire(RRRSpec.make_key(key, 'slave'), sec)
      RRRSpec.redis.expire(RRRSpec.make_key(key, 'worker_log'), sec)
      RRRSpec.redis.expire(RRRSpec.make_key(key, 'task_queue'), sec)
      RRRSpec.redis.expire(RRRSpec.make_key(key, 'tasks'), sec)
      RRRSpec.redis.expire(RRRSpec.make_key(key, 'tasks_left'), sec)
    end
==========================================================================
 Persistence