Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serlo/api.serlo.org-cache-worker
https://github.com/serlo/api.serlo.org-cache-worker
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/serlo/api.serlo.org-cache-worker
- Owner: serlo
- License: apache-2.0
- Created: 2020-10-19T09:30:15.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-23T19:51:28.000Z (about 3 years ago)
- Last Synced: 2023-04-09T03:01:10.380Z (over 1 year ago)
- Language: TypeScript
- Size: 474 KB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cache Worker for api.serlo.org
This repository defines the cache worker for updating the cache of Serlo's Graphql API.
## Development
- `yarn` to install all dependencies
- `yarn test` runs the unit tests## Directory structure
- `__tests__` contains the unit tests
- `src/` defines the cache worker## Configuration
- edit `src/cache-keys.json` to set the keys you want to update.
- Set environment variable PAGINATION (integer) to determine how many keys are going to be updated at each call.