Class: DSPy::LM::CacheManager::CacheEntry

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dspy/lm/cache_manager.rb

Overview

Cache entry with TTL

Instance Method Summary collapse

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/dspy/lm/cache_manager.rb', line 19

def expired?
  Time.now > expires_at
end