├── .gitignore ├── .npmignore ├── .travis.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── example ├── .gitignore ├── README.md ├── package.json ├── public │ ├── favicon.ico │ ├── index.html │ └── manifest.json ├── src │ ├── App.css │ ├── App.js │ ├── App.test.js │ ├── index.css │ ├── index.js │ ├── logo.svg │ ├── redux │ │ ├── configureStore.js │ │ ├── posts.js │ │ └── reducers.js │ └── registerServiceWorker.js └── yarn.lock ├── package.json ├── src ├── __tests__ │ ├── actions.test.ts │ ├── cacheEnhancer.test.ts │ ├── checkCacheValid.test.ts │ └── generateCacheTTL.test.ts ├── actions.ts ├── cacheEnhancer.ts ├── checkCacheValid.ts ├── constants.ts ├── generateCacheTTL.ts └── index.ts ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | .vscode 4 | lib -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | tsconfig.json 2 | src 3 | example 4 | coverage 5 | .vscode -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | TBC -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/README.md -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/.gitignore -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/README.md -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/package.json -------------------------------------------------------------------------------- /example/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/public/favicon.ico -------------------------------------------------------------------------------- /example/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/public/index.html -------------------------------------------------------------------------------- /example/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/public/manifest.json -------------------------------------------------------------------------------- /example/src/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/src/App.css -------------------------------------------------------------------------------- /example/src/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/src/App.js -------------------------------------------------------------------------------- /example/src/App.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/src/App.test.js -------------------------------------------------------------------------------- /example/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/src/index.css -------------------------------------------------------------------------------- /example/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/src/index.js -------------------------------------------------------------------------------- /example/src/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/src/logo.svg -------------------------------------------------------------------------------- /example/src/redux/configureStore.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/src/redux/configureStore.js -------------------------------------------------------------------------------- /example/src/redux/posts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/src/redux/posts.js -------------------------------------------------------------------------------- /example/src/redux/reducers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/src/redux/reducers.js -------------------------------------------------------------------------------- /example/src/registerServiceWorker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/src/registerServiceWorker.js -------------------------------------------------------------------------------- /example/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/example/yarn.lock -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/package.json -------------------------------------------------------------------------------- /src/__tests__/actions.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/src/__tests__/actions.test.ts -------------------------------------------------------------------------------- /src/__tests__/cacheEnhancer.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/src/__tests__/cacheEnhancer.test.ts -------------------------------------------------------------------------------- /src/__tests__/checkCacheValid.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/src/__tests__/checkCacheValid.test.ts -------------------------------------------------------------------------------- /src/__tests__/generateCacheTTL.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/src/__tests__/generateCacheTTL.test.ts -------------------------------------------------------------------------------- /src/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/src/actions.ts -------------------------------------------------------------------------------- /src/cacheEnhancer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/src/cacheEnhancer.ts -------------------------------------------------------------------------------- /src/checkCacheValid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/src/checkCacheValid.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/generateCacheTTL.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/src/generateCacheTTL.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/src/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JumboInteractiveLimited/redux-cache/HEAD/yarn.lock --------------------------------------------------------------------------------