We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6bea49 commit f09d738Copy full SHA for f09d738
1 file changed
packages/core/src/storages/meta-storage.ts
@@ -18,7 +18,17 @@ export interface UploadList {
18
}
19
20
export interface MetaStorageOptions {
21
+ /**
22
+ * Prefix added to the storage key (file path, Redis key, etc.).
23
+ * @default ''
24
+ */
25
prefix?: string;
26
+
27
28
+ * Suffix appended to the storage key.
29
+ * Prevents name collisions when storing metadata alongside binary files.
30
+ * @default '.META'
31
32
suffix?: string;
33
34
@@ -28,6 +38,7 @@ export interface MetaStorageOptions {
38
export class MetaStorage<T> {
39
prefix = '';
40
suffix = '';
41
42
logger: Logger = uploadxLogger.getChild(this.constructor.name);
43
44
constructor(options?: MetaStorageOptions) {
0 commit comments