index
Classes
BaetaCache
Implements
DurableObject
Constructors
new BaetaCache()
new BaetaCache(
state
,env
):BaetaCache
Parameters
Parameter | Type |
---|---|
|
|
|
{} |
Returns
Properties
Property | Modifier | Type |
---|---|---|
|
|
|
|
|
|
Methods
alarm()
alarm():
Promise
<void
>
Returns
Promise
<void
>
Implementation of
DurableObject.alarm
delete()
delete(
keys
):Promise
<null
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<null
>
fetch()
fetch(
request
):Promise
<Response
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<Response
>
Implementation of
DurableObject.fetch
get()
get(
keys
):Promise
<string
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<string
>
handleEviction()
handleEviction():
Promise
<void
>
Returns
Promise
<void
>
list()
list(
prefix
,startAfter
?,limit
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
Promise
<string
>
put()
put(
values
,ttl
?):Promise
<null
>
Parameters
Parameter | Type |
---|---|
|
[ |
|
|
Returns
Promise
<null
>
scheduledEviction()
scheduledEviction(
at
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<void
>
CloudflareCacheClient
Constructors
new CloudflareCacheClient()
new CloudflareCacheClient(
durableObject
):CloudflareCacheClient
Parameters
Parameter | Type |
---|---|
|
|
Returns
Properties
Property | Modifier | Type |
---|---|---|
|
|
|
Methods
delete()
delete(
keys
):Promise
<null
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<null
>
deleteOne()
deleteOne(
key
):Promise
<null
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<null
>
get()
get(
keys
):Promise
<(null
|string
)[]>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<(null
| string
)[]>
getOne()
getOne(
key
):Promise
<null
|string
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<null
| string
>
list()
list(
prefix
,startAfter
?,limit
?):Promise
<string
[]>
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
Promise
<string
[]>
put()
put(
values
,ttl
?):Promise
<null
>
Parameters
Parameter | Type |
---|---|
|
[ |
|
|
Returns
Promise
<null
>
putOne()
putOne(
key
,value
,ttl
?):Promise
<null
>
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
Promise
<null
>
CloudflareStoreAdapter<Item>
Extends
StoreAdapter
<Item
>
Type Parameters
Type Parameter |
---|
|
Constructors
new CloudflareStoreAdapter()
new CloudflareStoreAdapter<
Item
>(durableObject
,options
,type
,hash
):CloudflareStoreAdapter
<Item
>
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
|
|
Returns
CloudflareStoreAdapter
<Item
>
Overrides
StoreAdapter<Item>.constructor
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Methods
createKey()
protected
createKey(ref
):string
Parameters
Parameter | Type |
---|---|
|
|
Returns
string
Inherited from
StoreAdapter.createKey
createKeyByItem()
protected
createKeyByItem(item
):string
Parameters
Parameter | Type |
---|---|
|
|
Returns
string
Inherited from
StoreAdapter.createKeyByItem
createKeyByQuery()
protected
createKeyByQuery(queryRef
,parentRef
?,args
?):string
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
string
Inherited from
StoreAdapter.createKeyByQuery
createMiddleware()
createMiddleware<
Result
,Root
,Args
>(queryRef
, ...args
):Middleware
<Result
,Root
,unknown
,Args
>
Type Parameters
Type Parameter |
---|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
... |
|
Returns
Middleware
<Result
, Root
, unknown
, Args
>
Inherited from
StoreAdapter.createMiddleware
createQueryKeyGlobMatcher()
protected
createQueryKeyGlobMatcher(queryRef
,parentRef
,args
):string
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
string
Inherited from
StoreAdapter.createQueryKeyGlobMatcher
createQueryKeyHeader()
protected
createQueryKeyHeader(parentRef
,args
?):string
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
string
Inherited from
StoreAdapter.createQueryKeyHeader
createQueryKeyNamespace()
protected
createQueryKeyNamespace(queryRef
):string
Parameters
Parameter | Type |
---|---|
|
|
Returns
string
Inherited from
StoreAdapter.createQueryKeyNamespace
createQueryKeyRegExpMatcher()
protected
createQueryKeyRegExpMatcher(queryRef
,parentRef
,args
):RegExp
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
RegExp
Inherited from
StoreAdapter.createQueryKeyRegExpMatcher
decodeQueryItemRef()
protected
decodeQueryItemRef(encodedRef
):null
|string
Parameters
Parameter | Type |
---|---|
|
|
Returns
null
| string
Inherited from
StoreAdapter.decodeQueryItemRef
delete()
delete(
ref
,evictQueries
?):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
Promise
<void
>
Inherited from
StoreAdapter.delete
deleteMany()
deleteMany(
refs
,evictQueries
):Promise
<void
>
Parameters
Parameter | Type | Default value |
---|---|---|
|
|
|
|
|
|
Returns
Promise
<void
>
Overrides
StoreAdapter.deleteMany
deleteQueries()
deleteQueries<
Result
,Root
,Args
>(queryRef
?,matcher
?):Promise
<void
>
Type Parameters
Type Parameter |
---|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
Promise
<void
>
Inherited from
StoreAdapter.deleteQueries
deleteQueriesByRef()
protected
deleteQueriesByRef(queryRef
?,parentRef
?,args
?):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
Promise
<void
>
Overrides
StoreAdapter.deleteQueriesByRef
encodePrimitive()
protected
encodePrimitive(value
,catchAll
?):null
|string
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
null
| string
Inherited from
StoreAdapter.encodePrimitive
encodeProperty()
protected
encodeProperty(value
):string
Parameters
Parameter | Type |
---|---|
|
|
Returns
string
Inherited from
StoreAdapter.encodeProperty
encodeQueryArgs()
protected
encodeQueryArgs(args
,catchAll
?):string
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
string
Inherited from
StoreAdapter.encodeQueryArgs
encodeQueryItemRef()
protected
encodeQueryItemRef(item
):string
Parameters
Parameter | Type |
---|---|
|
|
Returns
string
Inherited from
StoreAdapter.encodeQueryItemRef
get()
get(
ref
):Promise
<null
|Item
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<null
| Item
>
Inherited from
StoreAdapter.get
getMany()
getMany(
refs
):Promise
<null
|Item
[]>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<null
| Item
[]>
Inherited from
StoreAdapter.getMany
getPartialMany()
getPartialMany(
refs
):Promise
<null
| (null
|Item
)[]>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<null
| (null
| Item
)[]>
Overrides
StoreAdapter.getPartialMany
getQueryResult()
getQueryResult<
Result
,Root
,Args
>(queryRef
,matcher
?):Promise
<null
| {query
:Result
; }>
Type Parameters
Type Parameter |
---|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
Promise
<null
| { query
: Result
; }>
Inherited from
StoreAdapter.getQueryResult
getRef()
protected
getRef(root
):ItemRef
Parameters
Parameter | Type |
---|---|
|
|
Returns
ItemRef
Inherited from
StoreAdapter.getRef
getRefFallback()
protected
getRefFallback(root
):undefined
|string
Parameters
Parameter | Type |
---|---|
|
|
Returns
undefined
| string
Inherited from
StoreAdapter.getRefFallback
getRevision()
protected
getRevision():string
Returns
string
Inherited from
StoreAdapter.getRevision
getTtl()
protected
getTtl():undefined
|number
Returns
undefined
| number
loaderFn()
protected
loaderFn(refs
):Promise
<any
[]>
Parameters
Parameter | Type |
---|---|
|
readonly |
Returns
Promise
<any
[]>
Inherited from
StoreAdapter.loaderFn
loadQueryMetadata()
protected
loadQueryMetadata(queryRef
,parentRef
?,args
?):Promise
<null
|string
[]>
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
Promise
<null
| string
[]>
Overrides
StoreAdapter.loadQueryMetadata
refillNullQueryItems()
protected
refillNullQueryItems(nullableRefs
,items
): (null
|Item
)[]
Parameters
Parameter | Type |
---|---|
|
( |
|
|
Returns
(null
| Item
)[]
Inherited from
StoreAdapter.refillNullQueryItems
save()
save(
item
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<void
>
Inherited from
StoreAdapter.save
saveMany()
saveMany(
items
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<void
>
Overrides
StoreAdapter.saveMany
saveQueryMetadata()
protected
saveQueryMetadata(queryRef
,meta
,parentRef
?,args
?):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
|
|
Returns
Promise
<void
>
Overrides
StoreAdapter.saveQueryMetadata
saveQueryResult()
saveQueryResult<
Result
,Root
,Args
>(queryRef
,data
,matcher
?):Promise
<void
>
Type Parameters
Type Parameter |
---|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
Promise
<void
>
Inherited from
StoreAdapter.saveQueryResult
searchQueries()
protected
searchQueries(queryRef
,parentRef
,args
):Promise
<string
[]>
Parameters
Parameter | Type | Default value |
---|---|---|
|
|
|
|
|
|
|
|
|
Returns
Promise
<string
[]>
shouldEncode()
protected
shouldEncode(value
):boolean
Parameters
Parameter | Type |
---|---|
|
|
Returns
boolean
Inherited from
StoreAdapter.shouldEncode
validateRefType()
protected
validateRefType(ref
): asserts ref is string | number | bigint
Parameters
Parameter | Type |
---|---|
|
|
Returns
asserts ref is string | number | bigint
Inherited from
StoreAdapter.validateRefType