@litert/redis
Version:
A redis protocol implement for Node.js.
28 lines • 1.42 kB
JavaScript
;
/**
* Copyright 2025 Angus.Fenying <fenying@litert.org>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_ACTION_ON_QUEUE_FULL = exports.DEFAULT_QUEUE_SIZE = exports.DEFAULT_CONNECT_TIMEOUT = exports.DEFAULT_COMMAND_TIMEOUT = exports.DEFAULT_HOST = exports.DEFAULT_PORT = exports.PROTO_NULL = exports.PROTO_DELIMITER = exports.PROTO_DELIMITER_VALUE = void 0;
exports.PROTO_DELIMITER_VALUE = '\r\n';
exports.PROTO_DELIMITER = Buffer.from(exports.PROTO_DELIMITER_VALUE);
exports.PROTO_NULL = Buffer.from(`$-1${exports.PROTO_DELIMITER_VALUE}`);
exports.DEFAULT_PORT = 6379;
exports.DEFAULT_HOST = '127.0.0.1';
exports.DEFAULT_COMMAND_TIMEOUT = 0;
exports.DEFAULT_CONNECT_TIMEOUT = 30_000;
exports.DEFAULT_QUEUE_SIZE = 1024 * 1024;
exports.DEFAULT_ACTION_ON_QUEUE_FULL = 'error';
//# sourceMappingURL=Constants.js.map