@request-seal/core API
Preparing search index...
index
createCache
Function createCache
createCache
(
input
?:
unknown
,
)
:
Result
<
Readonly
<
{
close
:
()
=>
Result
<
true
>
;
invalidate
:
(
source
:
unknown
)
=>
Result
<
true
>
;
refresh
:
(
source
:
unknown
,
snapshot
?:
unknown
,
)
=>
Promise
<
Result
<
Readonly
<
{
etag
:
string
|
null
;
expiresAt
:
number
;
fetchedAt
:
number
;
keys
:
Readonly
<
Record
<
string
,
Resolution
>
>
;
lookup
:
(
keyId
:
unknown
,
algorithms
:
unknown
,
now
?:
number
,
)
=>
Promise
<
Result
<
(...)
>
>
;
origin
:
string
;
proof
:
"signed"
|
"unsigned"
|
"not_applicable"
;
revision
:
string
;
source
:
DiscoverySource
;
}
,
>
,
>
,
>
;
remove
:
(
source
:
unknown
,
thumbprint
:
unknown
)
=>
Result
<
true
>
;
resolve
:
(
source
:
unknown
,
keyId
:
unknown
,
options
?:
unknown
,
)
=>
Promise
<
Result
<
Readonly
<
{
algorithm
:
SigningAlgorithm
;
assertedAlgorithm
:
JwsAlgorithm
|
null
;
expiresAt
:
number
;
fetchedAt
:
number
;
key
:
PublicKey
;
keyId
:
string
;
location
:
string
;
origin
:
string
;
proof
:
"signed"
|
"unsigned"
|
"not_applicable"
;
revision
:
string
|
null
;
sourceType
:
"directory"
|
"jwks_uri"
|
"cimd"
;
thumbprint
:
string
;
}
,
>
,
>
,
>
;
}
,
>
,
>
Validate cache options and create a branded discovery cache.
Parameters
input
:
unknown
= {}
Returns
Result
<
Readonly
<
{
close
:
()
=>
Result
<
true
>
;
invalidate
:
(
source
:
unknown
)
=>
Result
<
true
>
;
refresh
:
(
source
:
unknown
,
snapshot
?:
unknown
,
)
=>
Promise
<
Result
<
Readonly
<
{
etag
:
string
|
null
;
expiresAt
:
number
;
fetchedAt
:
number
;
keys
:
Readonly
<
Record
<
string
,
Resolution
>
>
;
lookup
:
(
keyId
:
unknown
,
algorithms
:
unknown
,
now
?:
number
,
)
=>
Promise
<
Result
<
(...)
>
>
;
origin
:
string
;
proof
:
"signed"
|
"unsigned"
|
"not_applicable"
;
revision
:
string
;
source
:
DiscoverySource
;
}
,
>
,
>
,
>
;
remove
:
(
source
:
unknown
,
thumbprint
:
unknown
)
=>
Result
<
true
>
;
resolve
:
(
source
:
unknown
,
keyId
:
unknown
,
options
?:
unknown
,
)
=>
Promise
<
Result
<
Readonly
<
{
algorithm
:
SigningAlgorithm
;
assertedAlgorithm
:
JwsAlgorithm
|
null
;
expiresAt
:
number
;
fetchedAt
:
number
;
key
:
PublicKey
;
keyId
:
string
;
location
:
string
;
origin
:
string
;
proof
:
"signed"
|
"unsigned"
|
"not_applicable"
;
revision
:
string
|
null
;
sourceType
:
"directory"
|
"jwks_uri"
|
"cimd"
;
thumbprint
:
string
;
}
,
>
,
>
,
>
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@request-seal/core API
Loading...
Validate cache options and create a branded discovery cache.