Create
Last updated
db.create('tag', content, ttl)tag
The new Record's tag
String
content
The Record's content
Any
ttl
Record's time to live
Number
When you create a Record, you can set a TTL for that Record.
db.get('tag').expire(ttlMs)By default, Dubnium will only check TTL when you read a Record. However, you can call monitorTTL() to auto check TTL. However, this will read metadata for all Records.
db.monitorTTL(interval)interval
Interval of time for checking
Number
db.stopTTLMonitor()path
File path
String
dbInstance
Dubnium instance
Dubnium
target
Target directory to clone the record in.
String
Last updated
onst Record = require("dubnium/record")
new Record( path, dbInstance )db.get('tag').clone('target')