Jeśli chce się buforować istniejący obiekt, a nie wyjście funkcji, można po prostu zwrócić to przez funkcję lambda
If you want to cache an existing object rather than the output of a function, you can simply return it via a lambda function
Jak sama nazwa wskazuje, to rozwiązanie wykorzystuje funkcję Lambda uruchamianą w momencie nadejścia żądania do endpointu.
As the name suggests, this solution uses the Lambda function that is executed when the request comes to an endpoint.
Zaimplementowali funkcję lambda, aby zachować ograniczony i kontrolowany zakres zmiennych.
They implemented an anonymous function to keep the variable scope limited and controlled.
Jeśli chce się wygenerować inny odnośnik, można określić funkcję lambda, która otrzyma jako parametry wartość id, typ obiektu (np. table) i nazwę obiektu.
If you want a different link to be generated, you can specify a lambda, wich will receive as parameters, the value of the id, the type of the object (e.g. table), and the name of the object.
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.