Documentation
Preparing search index...
@kehto/nip
CacheStorageNappletArtifactCache
Class CacheStorageNappletArtifactCache
Implements
NappletArtifactCache
Index
Constructors
constructor
Methods
delete
Blob
get
Coordinate
mark
Aggregate
Active
prune
read
Blob
release
Aggregate
Active
snapshot
Index
touch
Aggregate
write
Coordinate
write
Verified
Resolution
Constructors
constructor
new
CacheStorageNappletArtifactCache
(
options
?:
CacheStorageNappletArtifactCacheOptions
,
)
:
CacheStorageNappletArtifactCache
Parameters
options
:
CacheStorageNappletArtifactCacheOptions
= {}
Returns
CacheStorageNappletArtifactCache
Methods
delete
Blob
deleteBlob
(
sha256Hex
:
string
)
:
Promise
<
void
>
Parameters
sha256Hex
:
string
Returns
Promise
<
void
>
get
Coordinate
getCoordinate
(
input
:
{
dTag
:
string
;
kind
:
number
;
pubkey
:
string
}
,
options
?:
CoordinateFreshnessOptions
,
)
:
Promise
<
CachedCoordinate
&
{
fresh
:
boolean
}
|
undefined
>
Parameters
input
:
{
dTag
:
string
;
kind
:
number
;
pubkey
:
string
}
options
:
CoordinateFreshnessOptions
= {}
Returns
Promise
<
CachedCoordinate
&
{
fresh
:
boolean
}
|
undefined
>
mark
Aggregate
Active
markAggregateActive
(
dTag
:
string
,
aggregateHash
:
string
)
:
void
Parameters
dTag
:
string
aggregateHash
:
string
Returns
void
prune
prune
(
now
?:
number
)
:
Promise
<
void
>
Parameters
now
:
number
= ...
Returns
Promise
<
void
>
read
Blob
readBlob
(
sha256Hex
:
string
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
|
undefined
>
Parameters
sha256Hex
:
string
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
|
undefined
>
release
Aggregate
Active
releaseAggregateActive
(
dTag
:
string
,
aggregateHash
:
string
)
:
void
Parameters
dTag
:
string
aggregateHash
:
string
Returns
void
snapshot
Index
snapshotIndex
()
:
Promise
<
NappletArtifactCacheIndex
>
Returns
Promise
<
NappletArtifactCacheIndex
>
touch
Aggregate
touchAggregate
(
dTag
:
string
,
aggregateHash
:
string
,
now
?:
number
)
:
Promise
<
void
>
Parameters
dTag
:
string
aggregateHash
:
string
now
:
number
= ...
Returns
Promise
<
void
>
write
Coordinate
writeCoordinate
(
input
:
{
aggregateHash
:
string
;
backgroundTtlMs
?:
number
;
dTag
:
string
;
foregroundTtlMs
?:
number
;
kind
:
number
;
lastResolvedAt
?:
number
;
pubkey
:
string
;
}
,
)
:
Promise
<
void
>
Parameters
input
:
{
aggregateHash
:
string
;
backgroundTtlMs
?:
number
;
dTag
:
string
;
foregroundTtlMs
?:
number
;
kind
:
number
;
lastResolvedAt
?:
number
;
pubkey
:
string
;
}
Returns
Promise
<
void
>
write
Verified
Resolution
writeVerifiedResolution
(
input
:
WriteVerifiedResolutionInput
)
:
Promise
<
void
>
Parameters
input
:
WriteVerifiedResolutionInput
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
delete
Blob
get
Coordinate
mark
Aggregate
Active
prune
read
Blob
release
Aggregate
Active
snapshot
Index
touch
Aggregate
write
Coordinate
write
Verified
Resolution
Documentation
Loading...