(key string, seconds int64)
| 26 | } |
| 27 | |
| 28 | func (ek *ExpireStructure) EXPIRE(key string, seconds int64) error { |
| 29 | deadtime := ek.getCurrentMiliUnixTimeStamp() + seconds*1000 |
| 30 | return ek.setExpireToDB(key, deadtime) |
| 31 | } |
| 32 | |
| 33 | func (ek *ExpireStructure) PEXPIRE(key string, milliseconds int64) error { |
| 34 | deadtime := ek.getCurrentMiliUnixTimeStamp() + milliseconds |