ElastiCache is a cloud Redis service by Amazon Web Services. It’s a fully-managed cloud Redis service, much like other cloud databases AWS offers, which means scaling your Redis instances is a breeze. Big names like Adobe and Airbnb use ElastiCache.
In Redis, the primary unit of distribution is a hash slot. Distributed versions of redis - including the open source Redis Cluster, commercial Redis Enterprise and even AWS ElastiCache - can only move around data 1 slot at a time.
If you work with Java and use Spring, there is a fair chance your keys in Redis look like this
Often, you want to export data from redis as a csv. The redis-cli has a
--csv flag, but it only works if you want to export a single key. But with a little bit of command line magic, you can export any number of keys as a CSV format.
This script will export the fields id, display name, reputation and location for all hashes starting with
Often, developers forget to set an expiry on keys, and redis begins to run out of memory. While you can set an expiry to newly generated keys, you still need a way to set an expiry to keys already sitting in memory.
Redis does not offer a command to bulk rename keys in redis. But it is easy enough to create a script using redis-cli and some command line tools.
Let’s say you want you started out naming fields with under_scores, and another team member used camelCase. Now your redis hashes are a mess, and you’d rather stick to one convention. You need a way to rename fields across all hashes.
Redis does not have a way to rename fields within a hash. But more importantly, there is no way to do it for all the hashes you have created.
Redis does not offer a way to bulk delete keys. You can however use redis-cli and a little bit of command line magic to bulk delete keys without blocking redis.
Redis is an in-memory data store, which means that the entire dataset is stored in memory (RAM). While this is great for performance, when the size of the data starts growing, more and more RAM needs to be added to hold all that data. This can quickly become prohibitively expensive and before you know it, server costs start skyrocketing, leaving you worried about whether Redis can scale for you in a cost-effective way.
RDBTools is a self-hosted administration tool for Redis, with a focus on reducing memory usage and improving application performance. This blog is a quick guide on how to install RDBTools using AWS CloudFormation template.
RDBTools is a Redis memory analysis tool which can analyze your AWS ElastiCache instance and generate custom recommendations for your Redis instance. This article is a quick guide on how to run memory analysis on AWS ElastiCache.
RDBTools is an administration GUI and memory analyzer for Redis. You can use RDBTools to optimize memory used by Heroku Redis and thereby reduce the cost.
Is your Redis Server using too much memory? Here is a handy cheat-sheet to help you reduce memory.
RedisConf is the premier Redis user conference where Redis contributors and expert users meet to make big announcements, share use cases, get hands-on training and master key concepts.