Type Parameters
- T extends "memory" | "disk"
Constructors
constructor
- new Cacher<T extends "memory" | "disk">(
__namedParameters: { type: T },
): Cacher<T> Type Parameters
- T extends "memory" | "disk"
Parameters
- __namedParameters: { type: T }
Accessors
map
- get map(): Map<string, T extends "memory" ? PathLike | Buffer : PathLike>
Returns Map<string, T extends "memory" ? PathLike | Buffer : PathLike>
path
- get path(): string
Returns string
Methods
clear
- clear(): void
Returns void
delete
- delete(id: string): void
Returns void
get
- get(id: string): Readable
Returns Readable
has
- has(id: string): boolean
Returns boolean
write
- write(
metaData: Track<
"SoundCloud"
| "LocalFile"
| "Url"
| "Youtube"
| "Spotify",
>,
stream: Readable,
): Promise<void> Parameters
- metaData: Track<"SoundCloud" | "LocalFile" | "Url" | "Youtube" | "Spotify">
- stream: Readable
Returns Promise<void>