Class: LumenLLM::Stores::NullStore
- Inherits:
-
Object
- Object
- LumenLLM::Stores::NullStore
- Defined in:
- lib/lumen_llm/stores/null_store.rb
Instance Method Summary collapse
- #all_stats(_pattern = "stats:*") ⇒ Object
- #cache(_key, _options = {}) ⇒ Object
- #incr_stat(_metric, _amount = 1) ⇒ Object
- #stat(_key) ⇒ Object
- #track_usage(_template_key, _model, _usage) ⇒ Object
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, = {}) 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 |