Skip to content
  • This project
    • Loading...
  • Sign in

brainfood / astro-wt

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • astro-wt
  • lib
  • cache.ts
  • Adam Heath's avatar
    Switch from node-cache to @isaacs/ttlcache, which works in the browser. · 3a2d50c1
    3a2d50c1 Browse Files
    Adam Heath committed 2024-06-26 14:28:08 -0500
cache.ts 210 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11
import TTLCache from '@isaacs/ttlcache'

export const selectorCache = new TTLCache({
  ttl: 10*60,
})

export const parsedHtmlCache = new TTLCache({
  ttl: 10*60,
})

export const findNodeCache = new WeakMap()