change contents to dictionary id:[length,expiretime]