feat(meta): add meta command for viewing/modifying key metadata
This commit is contained in:
parent
a382e8dc79
commit
618842b285
7 changed files with 189 additions and 0 deletions
11
testdata/meta-ttl.ct
vendored
Normal file
11
testdata/meta-ttl.ct
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Set TTL on a key, then view it (just verify no error, can't match dynamic time)
|
||||
$ pda set hello@mt world
|
||||
$ pda meta hello@mt --ttl 1h
|
||||
|
||||
# Clear TTL with --ttl never
|
||||
$ pda set --ttl 1h expiring@mt val
|
||||
$ pda meta expiring@mt --ttl never
|
||||
$ pda meta expiring@mt
|
||||
key: expiring@mt
|
||||
secret: false
|
||||
expires: never
|
||||
Loading…
Add table
Add a link
Reference in a new issue