MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / PEXPIRE

Method PEXPIRE

structure/expiring_key.go:33–36  ·  view source on GitHub ↗
(key string, milliseconds int64)

Source from the content-addressed store, hash-verified

31}
32
33func (ek *ExpireStructure) PEXPIRE(key string, milliseconds int64) error {
34 deadtime := ek.getCurrentMiliUnixTimeStamp() + milliseconds
35 return ek.setExpireToDB(key, deadtime)
36}
37
38func (ek *ExpireStructure) EXPIREAT(key string, timestamp int64) error {
39 return ek.setExpireToDB(key, timestamp*1000)

Callers 2

TestExpireStructure_PTTLFunction · 0.80

Calls 2

setExpireToDBMethod · 0.95

Tested by 2

TestExpireStructure_PTTLFunction · 0.64