@launchdarkly/js-server-sdk-common
Version:
LaunchDarkly Server SDK for JavaScript - common code
13 lines • 557 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @internal
*/
function makeBigSegmentRef(segment) {
// The format of Big Segment references is independent of what store implementation is being
// used; the store implementation receives only this string and does not know the details of
// the data model. The Relay Proxy will use the same format when writing to the store.
return `${segment.key}.g${segment.generation}`;
}
exports.default = makeBigSegmentRef;
//# sourceMappingURL=makeBigSegmentRef.js.map