EchoVault / SugarDB

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

Implement SHUTDOWN command #106

Open kelvinmwinuka opened 1 month ago

kelvinmwinuka commented 1 month 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 3 weeks ago

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

kelvinmwinuka commented 3 weeks ago

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