Cron job: Scan all the keys in the Tree
regularly and remove the expired ones.
extract element from string
generate a new nanoid with expiration time that is hex encoded.
get objects in batch that has been encoded by bincode
get the count N
get the count N
by scanning the prefix of the key
get id by name
get batch ids by scanning the prefix of the key with the format of prefix#id
get batch ids by scanning the prefix of the tag with the format of tag#id
get one object that has been encoded by bincode
Used for pagination.
convert i64
to [IVec]
Update the counter and return the new id. It is contiguous if every id is used.
convert [IVec] to u32
convert &[u8]
to i64
convert &[u8]
to u32
convert u32
to [IVec]