Missing doc, 

$key is as string
$value is a mixed (which should be serializable)