codeflysafe / gitalk

0 stars 0 forks source link

time-based-key-value-store - 魔法沉思录 #5

Open codeflysafe opened 3 years ago

codeflysafe commented 3 years ago

https://codeflysafe.github.io/2021/07/10/time-based-key-value-store/

创建一个基于时间的键值存储类 TimeMap,它支持下面两个操作: set(string key, string value, int timestamp) 存储键 key、值 value,以及给定的时间戳 timestamp。 get(string key, int timestamp) 返回先前调用 set(key, value, timestamp_prev) 所存储的值,其中 ti

codeflysafe commented 3 years ago

Good note!