OverviewFilesCommitsIssuesDocsReleasesPeers

ollama_semantic_function_calling / ollamatools-new / keet / node_modules / throwaway-local-cache / example.mjs

12 lines · javascript ref:
import Cache from './index.js'

const c = new Cache('cache')

const value = await c.get('hello')

c.queuePut('hello', 'world2')

setInterval(() => {}, 1000)

console.log(value)