Data provider plugin for loading data stored in a Redis in-memory database.
Project description
phovea_data_redis
Data provider plugin for loading data stored in a Redis in-memory database.
Installation
git clone https://github.com/phovea/phovea_data_redis.git
cd phovea_data_redis
npm install
Testing
npm test
Building
npm run build
Usage
The plugin is currently used to load ID mapping files.
Flush Mapping Database
redis-cli
select 3
flushall
Administrating Redis from your host machine
Follow this steps if you want to administrate the Redis instance that is installed inside the virtual machine (using Vagrant)
- Download any Redis administration tool (e.g., Redis Desktop Manager)
- Start docker-compose in debug mode:
docker-compose-debug up -d
- Access via localhost
Backing up a Redis DB: -> https://www.npmjs.com/package/redis-dump
Restoring in a named volume:
- launch container
docker run -it -v workspacename_db_redis_data:/data -v F:\w\workspace_name\_backup\:/backup --name test redis:3.2-alpine sh ; docker rm test
- within shell
redis-server --appendonly yes &
cd /backup
cat redis_db_dump_id.txt | redis-cli -n 3
cat redis_db_dump_mapping.txt | redis-cli -n 4
exit
- use backup tool to backup
./docker-backup backup db_redis_data
This repository is part of Phovea, a platform for developing web-based visualization applications. For tutorials, API docs, and more information about the build and deployment process, see the documentation page.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for phovea_data_redis-7.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 847c8e6e4251c5cbf8569e95ad9f2f739ac3b532497378f0f5b6e510ac445892 |
|
MD5 | 3caf6119b13c57ed16a23ce1d8223dfc |
|
BLAKE2b-256 | dc5b12286fba3ed37acbcabf1fdc43a2f4da28b73d680b70826d5d78e2199c68 |