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
flush()
flush():
Promise
<null
>
Returns
Promise
<null
>
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
>
flush()
flush():
Promise
<null
>
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
,serializer
,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
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()
Call Signature
getMany(
refs
):Promise
<null
|Item
[]>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<null
| Item
[]>
Inherited from
StoreAdapter.getMany
Call Signature
getMany<
T
>(refs
,fallback
):Promise
<Item
[]>
Type Parameters
Type Parameter |
---|
|
Parameters
Parameter | Type |
---|---|
|
|
|
( |
Returns
Promise
<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
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
parseItem()
protected
parseItem(value
):Item
Parameters
Parameter | Type |
---|---|
|
|
Returns
Item
Inherited from
StoreAdapter.parseItem
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
[]>
stringifyItem()
protected
stringifyItem(item
):string
Parameters
Parameter | Type |
---|---|
|
|
Returns
string
Inherited from
StoreAdapter.stringifyItem