bandcamp-fetch/docs/api/classes/Cache.md
2023-06-14 04:09:54 +08:00

83 lines
1.2 KiB
Markdown

[bandcamp-fetch](../README.md) / Cache
# Class: Cache
## Table of contents
### Constructors
- [constructor](Cache.md#constructor)
### Methods
- [clear](Cache.md#clear)
- [setMaxPages](Cache.md#setmaxpages)
- [setTTL](Cache.md#setttl)
## Constructors
### constructor
**new Cache**()
## Methods
### clear
`Static` **clear**(`type?`): `void`
#### Parameters
| Name | Type |
| :------ | :------ |
| `type?` | [`CacheDataType`](../enums/CacheDataType.md) |
#### Returns
`void`
#### Defined in
[index.ts:69](https://github.com/patrickkfkan/bandcamp-fetch/blob/eace49c/src/index.ts#L69)
___
### setMaxPages
`Static` **setMaxPages**(`maxPages`): `void`
#### Parameters
| Name | Type |
| :------ | :------ |
| `maxPages` | `number` |
#### Returns
`void`
#### Defined in
[index.ts:77](https://github.com/patrickkfkan/bandcamp-fetch/blob/eace49c/src/index.ts#L77)
___
### setTTL
`Static` **setTTL**(`type`, `ttl`): `void`
#### Parameters
| Name | Type |
| :------ | :------ |
| `type` | [`CacheDataType`](../enums/CacheDataType.md) |
| `ttl` | `number` |
#### Returns
`void`
#### Defined in
[index.ts:73](https://github.com/patrickkfkan/bandcamp-fetch/blob/eace49c/src/index.ts#L73)