Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# Cache Worker for api.serlo.org

Serlo logo

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.