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