Class: LiterLlm::CacheBackendOpenDal

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
CacheBackend
Defined in:
lib/liter_llm/native.rb

Overview

OpenDAL-backed storage. Supports 40+ backends (S3, Redis, GCS, local FS, etc.).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



748
749
750
# File 'lib/liter_llm/native.rb', line 748

def config
  @config
end

#schemeObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



748
749
750
# File 'lib/liter_llm/native.rb', line 748

def scheme
  @scheme
end

Class Method Details

.from_hash(hash) ⇒ Object



765
766
767
# File 'lib/liter_llm/native.rb', line 765

def self.from_hash(hash)
  new(scheme: hash[:scheme] || hash["scheme"], config: hash[:config] || hash["config"])
end

Instance Method Details

#memory?Boolean

Returns:

  • (Boolean)


759
# File 'lib/liter_llm/native.rb', line 759

def memory? = false

#open_dal?Boolean

Returns:

  • (Boolean)


761
762
763
# File 'lib/liter_llm/native.rb', line 761

def open_dal? = true
# @param hash [Hash] deserialized from the native extension
# @return [self]