Categorygithub.com/me-io/memcached-util
modulepackage
0.0.0-20230405073455-95660e37029b
Repository: https://github.com/me-io/memcached-util.git
Documentation: pkg.go.dev

# README

Memcached Utility

Tiny memcached utility that allows you to backup and restore memcached cache

Go Report Card GoDoc Blog URL Build Status

Useful for stopping/starting/restarting memcached server without sacrificing any cached data.

Installation

Download and install the relevant binary from the releases page

Usage

Use the below signature to generate or restore the backup

memcached-util [--op <backup|restore>]
               [--filename <path-of-backup-file>]
               [--addr <address-with-port>]

Detail of options are listed below

OptionDefaultDescription
--addr0.0.0.0:11211Memcached address to connect to
--filenamemem_backup.jsonPath to the file to generate the backup in or to restore from
--opbackup or `restore

Examples

Generate the backup and store at the given path

memcached-util --addr "192.168.99.100:11211" --op "backup" --filename "mem_backup.json"
memcached-util --op "backup" --filename "/some/path/mem_backup.json"

Restore the backup from the given path

memcached-util --addr "192.168.99.100:11211" --op "restore" --filename "mem_backup.json"
memcached-util --op "restore" --filename "/some/path/mem_backup.json"

Contributing

Anyone is welcome to contribute, however, if you decide to get involved, please take a moment to review the guidelines:

License

The code is available under the MIT license.

# Packages

No description provided by the author

# Variables

VERSION is the app-global version string, which should be substituted with a real value during build.