Skip to content
This repository has been archived by the owner on Jan 19, 2020. It is now read-only.

Latest commit

 

History

History
78 lines (44 loc) · 1.67 KB

timem.md

File metadata and controls

78 lines (44 loc) · 1.67 KB

Module timem

Data Types


timem() = {K::binary(), V::term()}

Function Index

expired/1Request all the expired elements.
insert/2Insert an element in the database with a timestamp.
remove/1Remove an element from the database.
remove_expired/1Request and remove all the expired elements.

Function Details

expired/1


expired(D::integer()) -> [binary()]

Request all the expired elements.

insert/2


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/1


remove(K::binary()) -> timem() | undefined

Remove an element from the database.

remove_expired/1


remove_expired(D::integer()) -> [timem()]

Request and remove all the expired elements.