4i8

4i8/iexpire

Adding an expiration period in the form of a count and you can also update the duration in your model and here it will automatically synchronize the new period And when this period expires, the event will be issued, this package currently supports these database systems. MongoDB How this package works: You will create a connection to the model with data that you want to create for an expiration period, and note that the package only supports milliseconds Then it will create a dummy container within the process that has a duration for each object, and it will subtract the period that you put within the option every time the session of the intervel period that you put into the option ends. I do not know my explanation is understandable or not, but this package you run only once on the model you want to create an expiration period and you do not need to create a new one every time

JavaScript
0
0
Apache License 2.0
Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of 4i8/iexpire

Account's avatar
Mongoose MongoDB ODM
Account's avatar
start and clear interval without setting a variable

Top contributors

4i8's profile
4i8
12 contributions
JamelSyr's profile
JamelSyr
6 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet