git-cat-file
Version:
A pure-JavaScript implementation of `git cat-file -p` for Node.js.
18 lines (14 loc) • 362 B
text/typescript
/**
* https://github.com/kawanet/git-cat-file
*/
import {queueFactory} from "async-cache-queue"
export const shortCache = queueFactory({
cache: 1000, // 1 seconds
negativeCache: 1000, // 1 second
maxItems: 1000,
})
export const longCache = queueFactory({
cache: 3600000, // 1 hour
negativeCache: 1000, // 1 second
maxItems: 1000,
})