ascleaner

command module
v0.0.0-...-bfcd741 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2016 License: MIT Imports: 10 Imported by: 0

README

A tiny tool to clear Aerospike sets

Of course, there is an official tool: https://github.com/aerospike/delete-set

But this one is written in Go and much faster.

How to use it?

Install it with:

go get github.com/elgris/ascleaner

Run it like this:

./aerospike-cleaner --help
Usage of ./aerospike-cleaner:
  -b int
        Size of the buffer to pre-load keys before deleting (default 25000)
  -h string
        Comma-separated list of aerospike hosts (default "localhost:3000")
  -n string
        Data namespace
  -s string
        Comma-separated list of set names to erase
  -t duration
        Connection timeout (default 5s)

Examples

That's how you can clear all the data from namespace test:

./aerospike-cleaner -h docker:3000 -n test

That's how you can clear sets foo and bar from namespace test:

./aerospike-cleaner -h docker:3000 -n test -s foo,bar

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