11# cacheism
22Simple caching library
33
4+ [ ![ Node.js CI] ( https://github.com/andrewshell/cacheism/actions/workflows/node.js.yml/badge.svg )] ( https://github.com/andrewshell/cacheism/actions/workflows/node.js.yml )
5+
46## Overview
57
68The goal of cacheism is to wrap an async function with caching logic where we
@@ -72,13 +74,13 @@ Hit {
7274 version: 3,
7375 cacheName: '-internal/hoopla',
7476 cached: true,
75- created: 2022 -04-22T21:05:14.094Z ,
77+ created: 2023 -04-02T22:00:49.320Z ,
7678 data: { message: 'Hoopla!' },
7779 error: Error: Death
78- at /Users/andrewshell/code/personal/ test-cacheism/index.js:8:15
79- at Cacheism.go (/Users/andrewshell/code/personal/ cacheism/lib/cacheism.js:29 :30)
80- at async run (/Users/andrewshell/code/personal/ test-cacheism/index.js:7:13 ),
81- errorTime: 2022 -04-22T21:30:56.275Z ,
80+ at /Users/andrewshell/code/test-cacheism/index.js:9:19
81+ at Cacheism.go (/Users/andrewshell/code/cacheism/lib/cacheism.js:30 :30)
82+ at async run (/Users/andrewshell/code/test-cacheism/index.js:7:18 ),
83+ errorTime: 2023 -04-02T22:00:49.928Z ,
8284 consecutiveErrors: 1,
8385 etag: '"15-QcHvuZdyxCmLJ4zoYIPsP6pkNoM"',
8486 isHit: true,
@@ -100,12 +102,12 @@ Miss {
100102 version: 3,
101103 cacheName: '-internal/hoopla',
102104 cached: false,
103- created: 2022 -04-22T21:30:56.275Z ,
105+ created: 2023 -04-02T22:02:30.294Z ,
104106 data: null,
105107 error: Error: Missing cache
106- at Cacheism.go (/Users/andrewshell/code/personal/ cacheism/lib/cacheism.js:27 :19)
107- at async run (/Users/andrewshell/code/personal/ test-cacheism/index.js:7:18),
108- errorTime: 2022 -04-22T21:30:56.275Z ,
108+ at Cacheism.go (/Users/andrewshell/code/cacheism/lib/cacheism.js:28 :19)
109+ at async run (/Users/andrewshell/code/test-cacheism/index.js:7:18),
110+ errorTime: 2023 -04-02T22:02:30.294Z ,
109111 consecutiveErrors: 1,
110112 etag: null,
111113 isHit: false,
0 commit comments