Skip to main content

Posts

Showing posts with the label Cheatsheet

Redis cheatsheet

Redis is considered a NoSQL database. I see it as a great and efficient in memory cache on steroids. I use it for storing results of large calculations so I can quickly display the results on a web page. I actually use it as a cache for a production instance of dashing.io . Here's a good article about creating a dashboard using dashing.io -  https://gocardless.com/blog/raspberry-pi-metric-dashboards/ . Towards the bottom of the article check out the 'Persistance' section where there are instructions for adding Redis as the cache for dashing. Website:  http://redis.io/ Official Docker container:  https://hub.docker.com/_/redis/ Docker command:  docker run -d -p 6379:6379 -v `pwd`:/data --name redis-server redis To run redis commands on the container, execute: docker exec -it redis-server /bin/bash Docker command to start redis with persistent storage: docker run --name some-redis -d redis redis-server --appendonly yes  That should get you to the ba...