Supporting custom 'EXPIRE_AFTER' value (use case: user-defined expiration value)

I'll make this change to use isinstance for int checking. I think fraction of second is an edge case at this point.