Summary
The set_transient() function can be used to create a transient, which takes two required and one optional parameter. The first parameter is the name of the transient, the second is the value, and the third is the expiration time.
1
The value does not need to be serialized before it is set.
2
According to