Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/net/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,18 @@ export class CacheableNet extends Hookified {
}
}

/**
* Get the Cacheable instance used for caching fetch operations.
* @returns {Cacheable} The current Cacheable instance
*/
public get cache(): Cacheable {
return this._cache;
}

/**
* Set the Cacheable instance for caching fetch operations.
* @param {Cacheable} value - The Cacheable instance to use for caching
*/
public set cache(value: Cacheable) {
this._cache = value;
}
Expand Down