Class: LumenLLM::Stores::NullStore

Inherits:
Object
  • Object
show all
Defined in:
lib/lumen_llm/stores/null_store.rb

Instance Method Summary collapse

Instance Method Details

#all_stats(_pattern = "stats:*") ⇒ Object



15
16
17
# File 'lib/lumen_llm/stores/null_store.rb', line 15

def all_stats(_pattern = "stats:*")
  {}
end

#cache(_key, _options = {}) ⇒ Object



4
5
6
# File 'lib/lumen_llm/stores/null_store.rb', line 4

def cache(_key, _options = {})
  yield
end

#incr_stat(_metric, _amount = 1) ⇒ Object



8
9
# File 'lib/lumen_llm/stores/null_store.rb', line 8

def incr_stat(_metric, _amount = 1)
end

#stat(_key) ⇒ Object



11
12
13
# File 'lib/lumen_llm/stores/null_store.rb', line 11

def stat(_key)
  0
end

#track_usage(_template_key, _model, _usage) ⇒ Object



19
20
# File 'lib/lumen_llm/stores/null_store.rb', line 19

def track_usage(_template_key, _model, _usage)
end