private static function saveCredentials($key, $credentials)
    {
        $ttl = ($credentials->expires_in / 60) - 2;

        Core::instance()->cache()->put($key, $credentials->access_token, $ttl);
    }
private static function saveCredentials($key, $credentials)
    {
        $ttl = ($credentials->expires_in / 60) - 2;

        Core::instance()->cache()->put($key, $credentials->access_token, $ttl);
    }
private static function saveCredentials ( $ key , $ credentials ) { $ ttl = ( $ credentials -> expires_in / 60 ) - 2 ; Core :: instance ( ) -> cache ( ) -> put ( $ key , $ credentials -> access_token , $ ttl ) ; }
Store the credentials in the cache.

@param $credentials
Store the credentials in the cache .