https://github.com/serlo/api.serlo.org-cache-worker
https://github.com/serlo/api.serlo.org-cache-worker
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/serlo/api.serlo.org-cache-worker
- Owner: serlo
- License: apache-2.0
- Archived: true
- Created: 2020-10-19T09:30:15.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-23T19:51:28.000Z (almost 5 years ago)
- Last Synced: 2025-04-05T01:33:48.823Z (about 1 year ago)
- Language: TypeScript
- Size: 474 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
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.