Skip to content

Commit ec43ac8

Browse files
authored
feat: Export internalServer module for internal LD usage (#804)
1 parent 9f4c952 commit ec43ac8

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

packages/shared/sdk-server/src/cache/TtlCache.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ function isStale(record: CacheRecord): boolean {
44

55
/**
66
* Options for the TTL cache.
7-
*
8-
* @internal
97
*/
108
export interface TtlCacheOptions {
119
/**
@@ -26,8 +24,6 @@ interface CacheRecord {
2624

2725
/**
2826
* A basic TTL cache with configurable TTL and check interval.
29-
*
30-
* @internal
3127
*/
3228
export default class TtlCache {
3329
private _storage: Map<string, CacheRecord> = new Map();

packages/shared/sdk-server/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export * from './store';
99
export * from './events';
1010

1111
export * from '@launchdarkly/js-sdk-common';
12+
export * as internalServer from './internal';
1213

1314
export {
1415
LDClientImpl,
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import TtlCache from '../cache/TtlCache';
2+
import type { TtlCacheOptions } from '../cache/TtlCache';
3+
4+
export { TtlCache };
5+
export type { TtlCacheOptions };

0 commit comments

Comments
 (0)