redis-random-data

command module
v0.0.0-...-5d7a678 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 10 Imported by: 0

README

redis-random-data

Generates Random data for Redis.

What it does

Generates random data for Redis. It's useful for testing purposes.

How it works

It connects to a Redis instance and starts to generate random data. You can specify the number of keys to generate with -c flag. 10 by default. You can specify the prefix of the keys with -p flag. "record" by default.

You can specify your redis connection data with environment variables:

  • REDIS_HOST
  • REDIS_PORT
  • REDIS_DB
  • REDIS_USERNAME
  • REDIS_PASSWORD
  • REDIS_ADDRS
  • REDIS_ENABLECLUSTER

How to run it

  1. Go build
    go install github.com/tbuchaillot/redis-random-data
  1. Run
    redis-random-data -c 100 -p "record"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL