Using time.AfterFunc for expiration on memory impl