youtubei.js / UniversalCache
Class: UniversalCache
Implements
Constructors
new UniversalCache()
new UniversalCache(
persistent
,persistent_directory
?):UniversalCache
Parameters
• persistent: boolean
• persistent_directory?: string
Returns
Defined in
Accessors
cache_dir
get
cache_dir():string
Returns
string
Implementation of
Defined in
Methods
get()
get(
key
):Promise
<undefined
|ArrayBuffer
>
Parameters
• key: string
Returns
Promise
<undefined
| ArrayBuffer
>
Implementation of
Defined in
remove()
remove(
key
):Promise
<void
>
Parameters
• key: string
Returns
Promise
<void
>
Implementation of
Defined in
set()
set(
key
,value
):Promise
<void
>
Parameters
• key: string
• value: ArrayBuffer
Returns
Promise
<void
>