UNPKG
@tutkli/jikan-ts
Version:
latest (3.0.0)
3.0.0
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
1.2.2
1.2.1
1.2.0
1.1.0
1.0.1
1.0.0
0.6.62
0.6.61
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.52
0.5.51
0.5.42
0.5.41
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
Node.js wrapper for the Jikan API with built-in typings.
github.com/tutkli/jikan-ts
tutkli/jikan-ts
@tutkli/jikan-ts
/
dist
/
config
/
cache.d.ts
12 lines
(11 loc)
•
310 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export
interface
CacheOptions
{
/** TTL in milliseconds. Default: 5 minutes */
ttl
:
number
; }
export
declare
class
ResponseCache
{
private
cache;
private
ttl;
constructor
(
options
?:
Partial
<
CacheOptions
>
); get<T>(
key
:
string
): T |
undefined
;
set
(
key
:
string
,
data
:
unknown
):
void
; }