momentohq / momento-cli

Official CLI for Momento Serverless Cache
Apache License 2.0
48 stars 10 forks source link

add support for delete #295

Closed cprice404 closed 1 year ago

cprice404 commented 1 year ago

Currently you can do momento cache set and momento cache get, but no way to delete a key from a cache.

I believe that someone may have started adding this in the past but there was some hesitation around what the command should be, since momento cache delete already exists and will delete a cache. The best ideas I have at the moment are momento cache delete-key or momento cache delete-item.

There is a small chance that the rust sdk doesn't yet support this API, in which case we would need to add that first and do a release of the rust sdk.

cprice404 commented 1 year ago

@kvcache curious if you have any thoughts on what the CLI subcommand/args should be.