package.dist.src.config.auth-client-configurations.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Client SDK for Momento services
The newest version!
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Default = void 0;
const auth_client_configuration_1 = require("./auth-client-configuration");
const default_momento_logger_1 = require("./logging/default-momento-logger");
const defaultLoggerFactory = new default_momento_logger_1.DefaultMomentoLoggerFactory();
/**
* Laptop config provides defaults suitable for a medium-to-high-latency dev environment. Permissive timeouts, retries, and
* relaxed latency and throughput targets.
* @export
* @class Laptop
*/
class Default extends auth_client_configuration_1.AuthClientConfiguration {
/**
* Provides the latest recommended configuration for a laptop development environment. NOTE: this configuration may
* change in future releases to take advantage of improvements we identify for default configurations.
* @param {MomentoLoggerFactory} [loggerFactory=defaultLoggerFactory]
* @returns {CacheConfiguration}
*/
static latest(loggerFactory = defaultLoggerFactory) {
return new auth_client_configuration_1.AuthClientConfiguration({
loggerFactory: loggerFactory,
});
}
}
exports.Default = Default;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC1jbGllbnQtY29uZmlndXJhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29uZmlnL2F1dGgtY2xpZW50LWNvbmZpZ3VyYXRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDJFQUFvRTtBQUVwRSw2RUFBNkU7QUFFN0UsTUFBTSxvQkFBb0IsR0FDeEIsSUFBSSxvREFBMkIsRUFBRSxDQUFDO0FBRXBDOzs7OztHQUtHO0FBQ0gsTUFBYSxPQUFRLFNBQVEsbURBQXVCO0lBQ2xEOzs7OztPQUtHO0lBQ0gsTUFBTSxDQUFDLE1BQU0sQ0FDWCxnQkFBc0Msb0JBQW9CO1FBRTFELE9BQU8sSUFBSSxtREFBdUIsQ0FBQztZQUNqQyxhQU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