EchoVault / SugarDB

Embeddable and distributed in-memory alternative to Redis.
https://sugardb.io
Apache License 2.0
425 stars 25 forks source link

Implement SHUTDOWN command #106

Open kelvinmwinuka opened 2 months ago

kelvinmwinuka commented 2 months ago

The SHUTDOWN command shuts the server down synchronously. Reference: https://redis.io/docs/latest/commands/shutdown/

Client-Server Spec:

Command File: ./internal/modules/admin/commands.go Test File: ./internal/modules/admin/commands_test.go

Command: shutdown Module: constants.AdminModule Categories: contants.AdminCategory, constants.SlowCategory, constants.DangerousCategory Description: (SHUTDOWN [NOSAVE | SAVE] [NOW] [FORCE] [ABORT]) synchronously shutdown the server Sync: false

Embedded Spec:

Command File: ./echovault/api_admin.go Test File: ./echovault/api_admin_test.go

Documentation

Add documentation to ./docs/docs/commands/admin/shutdown.mdx

zenc0derr commented 2 months ago

Hi @kelvinmwinuka , I would like to work on this issue.

kelvinmwinuka commented 2 months ago

Hey @zenc0derr this issue is available. Feel free to take it up :)