Class: LiterLlm::CacheConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCacheConfig

Returns a new instance of CacheConfig.

Parameters:

  • max_entries: (Integer)
  • ttl: (Integer)
  • backend: (CacheBackend)


798
# File 'sig/types.rbs', line 798

def initialize: (?max_entries: Integer, ?ttl: Integer, ?backend: CacheBackend) -> void

Instance Attribute Details

#backendCacheBackend?

Returns the value of attribute backend.

Returns:



796
797
798
# File 'sig/types.rbs', line 796

def backend
  @backend
end

#max_entriesInteger?

Returns the value of attribute max_entries.

Returns:

  • (Integer, nil)


794
795
796
# File 'sig/types.rbs', line 794

def max_entries
  @max_entries
end

#ttlInteger?

Returns the value of attribute ttl.

Returns:

  • (Integer, nil)


795
796
797
# File 'sig/types.rbs', line 795

def ttl
  @ttl
end

Class Method Details

.defaultCacheConfig

Returns:



799
# File 'sig/types.rbs', line 799

def self.default: () -> CacheConfig