debian-mirror-gitlab/app/models/ci/build_trace_chunks/redis.rb

14 lines
224 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2018-11-08 19:23:39 +05:30
module Ci
module BuildTraceChunks
2021-09-04 01:27:46 +05:30
class Redis < RedisBase
2018-11-08 19:23:39 +05:30
private
2021-09-04 01:27:46 +05:30
def with_redis
Gitlab::Redis::SharedState.with { |redis| yield(redis) }
2018-11-08 19:23:39 +05:30
end
end
end
end