2023-06-10 16:52:27 +02:00
|
|
|
[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
|
|
|
|
|
2023-06-13 22:09:54 +02:00
|
|
|
[index.ts:69](https://github.com/patrickkfkan/bandcamp-fetch/blob/eace49c/src/index.ts#L69)
|
2023-06-10 16:52:27 +02:00
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
### setMaxPages
|
|
|
|
|
|
|
|
▸ `Static` **setMaxPages**(`maxPages`): `void`
|
|
|
|
|
|
|
|
#### Parameters
|
|
|
|
|
|
|
|
| Name | Type |
|
|
|
|
| :------ | :------ |
|
|
|
|
| `maxPages` | `number` |
|
|
|
|
|
|
|
|
#### Returns
|
|
|
|
|
|
|
|
`void`
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-06-13 22:09:54 +02:00
|
|
|
[index.ts:77](https://github.com/patrickkfkan/bandcamp-fetch/blob/eace49c/src/index.ts#L77)
|
2023-06-10 16:52:27 +02:00
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
### setTTL
|
|
|
|
|
|
|
|
▸ `Static` **setTTL**(`type`, `ttl`): `void`
|
|
|
|
|
|
|
|
#### Parameters
|
|
|
|
|
|
|
|
| Name | Type |
|
|
|
|
| :------ | :------ |
|
|
|
|
| `type` | [`CacheDataType`](../enums/CacheDataType.md) |
|
|
|
|
| `ttl` | `number` |
|
|
|
|
|
|
|
|
#### Returns
|
|
|
|
|
|
|
|
`void`
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-06-13 22:09:54 +02:00
|
|
|
[index.ts:73](https://github.com/patrickkfkan/bandcamp-fetch/blob/eace49c/src/index.ts#L73)
|