2.0.2 • Published 5 months ago
@graphai/cache_agent_filter v2.0.2
@graphai/cache_agent_filter for GraphAI
Cache Agent filter for GraphAI.
Install
yarn add @graphai/cache_agent_filterUSAGE
import { cacheAgentFilterGenerator } from "@graphai/cache_agent_filter";
const setCache = async (key: string, data: any) => {
...
return;
};
const getCache = async (key: string) => {
...
return data;
}
const cacheAgentFilter = cacheAgentFilterGenerator({ getCache, setCache });