timem() = {K::binary(), V::term()}
expired/1 | Request all the expired elements. |
insert/2 | Insert an element in the database with a timestamp. |
remove/1 | Remove an element from the database. |
remove_expired/1 | Request and remove all the expired elements. |
expired(D::integer()) -> [binary()]
Request all the expired elements.
insert(K::binary(), V::term()) -> boolean()
Insert an element in the database with a timestamp. This information will be useful to do the expiration or resend.
remove(K::binary()) -> timem() | undefined
Remove an element from the database.
remove_expired(D::integer()) -> [timem()]
Request and remove all the expired elements.