Class: Gitlab::Redis::TraceChunks

Inherits:
MultiStoreWrapper show all
Defined in:
lib/gitlab/redis/trace_chunks.rb

Constant Summary

Constants inherited from Wrapper

Wrapper::InvalidPathError

Class Method Summary collapse

Methods inherited from MultiStoreWrapper

multistore_pool, pool_name, with

Methods inherited from Wrapper

config_file_name, config_file_path, #db, #encrypted_secrets, #initialize, instrumentation_class, #params, params, pool, pool_size, rails_root, redis, redis_yml_path, #secret_file, #sentinels, #sentinels?, #store, store_name, #url, version, with

Constructor Details

This class inherits a constructor from Gitlab::Redis::Wrapper

Class Method Details

.config_fallbackObject

The data we store on TraceChunks used to be stored on SharedState.



8
9
10
# File 'lib/gitlab/redis/trace_chunks.rb', line 8

def config_fallback
  SharedState
end

.multistoreObject



12
13
14
# File 'lib/gitlab/redis/trace_chunks.rb', line 12

def multistore
  MultiStore.create_using_pool(MemoryStoreTraceChunks.pool, pool, store_name)
end