If you want to save php class objects, you should serialize it before.
public set ( string $key, mixed $value, integer $lifeTime = 3600, boolean $withoutValidationData = false ) : boolean | ||
$key | string | |
$value | mixed | Do not pass objects, use serialize if you want to store php objects |
$lifeTime | integer | In seconds. Default is one hour |
$withoutValidationData | boolean | |
return | boolean |