Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFile ¶
func NewFile(filename string) (jpf.ModelResponseCache, error)
NewFile creates an in-memory cache that persists to the given filename. On creation, it loads the cache from the file (if it exists). Whenever SetCachedResponse is called, the entire cache is saved back to the file.
func NewRAM ¶
func NewRAM() jpf.ModelResponseCache
NewRAM creates an in-memory implementation of ModelResponseCache. It stores model responses in memory using a hash of the input messages as a key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.