2018-08-03 07:15:25 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-06-07 08:04:55 +00:00
|
|
|
module Ci
|
|
|
|
module BuildTraceChunks
|
2021-06-10 15:10:14 +00:00
|
|
|
class Redis < RedisBase
|
2018-06-07 08:04:55 +00:00
|
|
|
private
|
|
|
|
|
2021-06-10 15:10:14 +00:00
|
|
|
def with_redis
|
|
|
|
Gitlab::Redis::SharedState.with { |redis| yield(redis) }
|
2018-06-07 08:04:55 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|