UNPKG

simple-lambda-client

Version:

A simple, convenient way to invoke aws lambda functions with best practices.

17 lines 631 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.withoutSet = void 0; /** * 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 */ const withoutSet = (cache) => ({ ...cache, set: (() => { }), }); exports.withoutSet = withoutSet; //# sourceMappingURL=withoutSet.js.map