ByteStorage / FlyDB

The high-performance kv storage engine based on bitcask paper made in golang
Apache License 2.0
1.25k stars 100 forks source link

Add ttl and size methods to the `structure/set.go` #267

Closed sjcsjc123 closed 1 year ago

sjcsjc123 commented 1 year ago

Two methods need to be added to obtain the expiration time and key value size of the key in the set data structure, and a set method needs to be added to set the timeout time.