inveniosoftware / inveniosoftware/invenio-cli

setup: delegate redis flush command

Open
#54 1 comment 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Python
Stars
14
Forks
49
PR merge metrics
No merged PRs in 30d

Description

Create a CLI command to *flush redis* in the appropriate module (invenio-app?).

Currently we are using:

``` console
invenio shell --no-term-title -c "import redis; redis.StrictRedis.from_url(app.config['CACHE_REDIS_URL']).flushall(); print('Cache cleared')"
```

As a single command, however this should be delegate and run something similar to `invenio redis flush`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.