Module: MatrixSdk::Util::Tinycache::InstanceMethods

Defined in:
lib/matrix_sdk/util/tinycache.rb

Instance Method Summary collapse

Instance Method Details

#tinycache_adapterObject



34
35
36
37
38
39
# File 'lib/matrix_sdk/util/tinycache.rb', line 34

def tinycache_adapter
  @tinycache_adapter ||= Tinycache.adapter.new.tap do |adapter|
    adapter.config = self.class.tinycache_adapter_config if adapter.respond_to? :config=
    adapter.client = client if respond_to?(:client) && adapter.respond_to?(:client=)
  end
end