Evan Zhou
Evan Zhou
> If it were a database, yes, but since it is a cache, its data is volatile. The use that i am giving it is to avoid the cold cache....
> what do you think of this? > > ``` > version 4 | create_at 4 > ... > crc 2 | key_size 2 | value_size 4 | expire_at 4...
> A single crc at the end of the file? > > I propose that each entry has a checksum, it can be xxhash, crc32... and only use 2 bytes....
> > On restore, we will load all the entries at once, so a singe checksum will be sufficient. > > the problem is that it must be read 2...
> > > > On restore, we will load all the entries at once, so a singe checksum will be sufficient. > > > > > > > > >...