CloudflareStoreAdapter<Item>
Extends
StoreAdapter<Item>
Type Parameters
| Type Parameter |
|---|
|
|
Constructors
Constructor
new CloudflareStoreAdapter<
Item>(durableObject,serializer,options,type,hash):CloudflareStoreAdapter<Item>
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
Returns
CloudflareStoreAdapter<Item>
Overrides
Properties
| Property | Modifier | Type | Inherited from |
|---|---|---|---|
|
|
| ||
|
| |||
|
|
| ||
|
| |||
|
|
|
Methods
createKey()
protectedcreateKey(ref):string
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
string
Inherited from
createKeyByItem()
protectedcreateKeyByItem(item):string
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
string
Inherited from
createKeyByQuery()
protectedcreateKeyByQuery(queryRef,parentRef?,args?):string
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
| |
|
|
|
Returns
string
Inherited from
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
createQueryKeyGlobMatcher()
protectedcreateQueryKeyGlobMatcher(queryRef,parentRef,args):string
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
string
Inherited from
StoreAdapter.createQueryKeyGlobMatcher
createQueryKeyHeader()
protectedcreateQueryKeyHeader(parentRef,args?):string
Parameters
| Parameter | Type |
|---|---|
|
| |
|
|
|
Returns
string
Inherited from
StoreAdapter.createQueryKeyHeader
createQueryKeyNamespace()
protectedcreateQueryKeyNamespace(queryRef):string
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
string
Inherited from
StoreAdapter.createQueryKeyNamespace
createQueryKeyRegExpMatcher()
protectedcreateQueryKeyRegExpMatcher(queryRef,parentRef,args):RegExp
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
RegExp
Inherited from
StoreAdapter.createQueryKeyRegExpMatcher
decodeQueryItemRef()
protecteddecodeQueryItemRef(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
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
deleteQueriesByRef()
protecteddeleteQueriesByRef(queryRef?,parentRef?,args?):Promise<void>
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
| |
|
|
|
Returns
Promise<void>
Overrides
StoreAdapter.deleteQueriesByRef
encodeQueryItemRef()
protectedencodeQueryItemRef(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
getMany()
Call Signature
getMany(
refs):Promise<null|Item[]>
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
Promise<null | Item[]>
Inherited from
Call Signature
getMany<
T>(refs,fallback):Promise<Item[]>
Type Parameters
| Type Parameter |
|---|
|
|
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
( |
Returns
Promise<Item[]>
Inherited from
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
getRef()
protectedgetRef(root):ItemRef
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
Inherited from
getRevision()
protectedgetRevision():string
Returns
string
Inherited from
getTtl()
protectedgetTtl():undefined|number
Returns
undefined | number
loaderFn()
protectedloaderFn(refs):Promise<any[]>
Parameters
| Parameter | Type |
|---|---|
|
|
readonly |
Returns
Promise<any[]>
Inherited from
loadQueryMetadata()
protectedloadQueryMetadata(queryRef,parentRef?,args?):Promise<null|string[]>
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
| |
|
|
|
Returns
Promise<null | string[]>
Overrides
StoreAdapter.loadQueryMetadata
parseItem()
protectedparseItem(value):Item
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
Item
Inherited from
save()
save(
item):Promise<void>
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
Promise<void>
Inherited from
saveMany()
saveMany(
items):Promise<void>
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
Promise<void>
Overrides
StoreAdapter.saveMany
saveQueryMetadata()
protectedsaveQueryMetadata(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
searchQueries()
protectedsearchQueries(queryRef,parentRef,args):Promise<string[]>
Parameters
| Parameter | Type | Default value |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Returns
Promise<string[]>
stringifyItem()
protectedstringifyItem(item):string
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
string