Sha256: dbae8aa03b251cf64486260acb1f554cd0c92559758e06f15f3ecc7694c1507e

Contents?: true

Size: 345 Bytes

Versions: 1

Compression:

Stored size: 345 Bytes

Contents

class StoredSession::TrimSessionsJob < StoredSession.config.base_job_class
  queue_as StoredSession.config.trim_sessions_job_queue_as

  def perform(max_created_age: nil, max_updated_age: nil)
    StoredSession::Session.trim!(max_created_age:, max_updated_age:)
  end

  ActiveSupport.run_load_hooks(:stored_session_trim_sessions_job, self)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stored_session-0.2.0 app/jobs/stored_session/trim_sessions_job.rb