* Wraps a server function to add ETag-based caching
* @param serverFn The original server function to be wrapped
* @returns A new server function with caching logic
0
stainless_em
memoizeByVersion
Script
* Memoize an async function's result using blob storage, keyed by the val's version
* @param fn The async function to memoize
* @param metaUrl The import.meta.url of the current val
* @returns The result of the memoized function