simple-lambda-client
Version:
A simple, convenient way to invoke aws lambda functions with best practices.
11 lines (10 loc) • 511 B
TypeScript
import { SimpleCache } from 'with-simple-caching';
/**
* disable the `.set` functionality of a cache
*
* usecases
* - when a cache is owned by a lambda.service
* - you can `.get` from the cache to avoid the lambda.api.call, given the cache key is serialized via `getSimpleLambdaClientCacheKey`
* - you shouldn't `.set` to the cache though, since the lambda.service is responsible for managing the data persisted there
*/
export declare const withoutSet: <T>(cache: SimpleCache<T>) => SimpleCache<T>;