Abstract
Base class for all caches. All caches should extend this class.
Protected
Sets a custom key encoder function for the cache. This function should take a prompt and an LLM key and return a string that will be used as the cache key.
The custom key encoder function.
Base class for all caches. All caches should extend this class.