MCPcopy
hub / github.com/electric-sql/pglite / starCount

Function starCount

docs/components/starCount.ts:28–33  ·  view source on GitHub ↗
(currentCount)

Source from the content-addressed store, hash-verified

26}
27
28export async function starCount(currentCount) {
29 const ttl = 3600 // 1 hour
30 return localStorageCache('starCount', ttl, async () => {
31 return await fetchStarCount(currentCount)
32 })
33}
34
35export async function fetchStarCount(currentCount) {
36 const resp = await fetch('https://api.github.com/repos/electric-sql/pglite')

Callers

nothing calls this directly

Calls 2

localStorageCacheFunction · 0.85
fetchStarCountFunction · 0.85

Tested by

no test coverage detected