Skip to content

New data structure —— Expiring key #142

Closed
@qishenonly

Description

@qishenonly

We need a new data structure, Expiring key, to extend the database's key-value storage structure.
We need to build some instructions into Expiring key to make it more complete.
If you are interested in extending the Expiring key data structure, you can comment below on the issue id you would like to try and we will assign it to you.

ID Method Command Description Progress People
1 EXPIRE EXPIRE key seconds Set a key's expiration time in seconds    
2 PEXPIRE PEXPIRE key milliseconds Set a key's expiration time in milliseconds    
3 EXPIREAT EXPIREAT key timestamp Set a key's expiration time in UNIX timestamp    
4 PEXPIREAT PEXPIREAT key milliseconds-timestamp Set a key's expiration time in UNIX milliseconds    
5 TTL TTL key Get the remaining time to live for a key    
6 PTTL PTTL key Get the remaining time to live in milliseconds    
7 PERSIST PERSIST key Remove the expiration time of a key    
8 EXPIREBY EXPIREBY key duration ex Set a key's expiration time by a duration    
9 PEXPIREBY PEXPIREBY key duration ex Set a key's expiration time by a duration in milliseconds    
10 EXPIREATBY EXPIREATBY key timestamp ex Set a key's expiration time by a UNIX timestamp    
11 PEXPIREATBY PEXPIREATBY key timestamp ex Set a key's expiration time by a UNIX timestamp in milliseconds

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions