Module: Gitlab::Client::Cache

Defined in:
lib/gitlab/client/cache/config.rb,
lib/gitlab/client/cache.rb

Defined Under Namespace

Classes: Config

Constant Summary collapse

VERSION =
GitlabClientCache::VERSION

Class Method Summary collapse

Class Method Details

.configObject

Performs caching for ‘gitlab` gem.



14
15
16
# File 'lib/gitlab/client/cache.rb', line 14

def self.config
  @config ||= Config.build
end

.configure {|config| ... } ⇒ Object

Yields:



18
19
20
21
22
# File 'lib/gitlab/client/cache.rb', line 18

def self.configure
  yield config if block_given?

  nil
end