abstract StoreAdapter<Item>
Extended by
Type Parameters
| Type Parameter |
|---|
|
|
Constructors
Constructor
new StoreAdapter<
Item>(serializer,options,type,hash):StoreAdapter<Item>
Parameters
| Parameter | Type |
|---|---|
|
| |
|
|
|
|
|
|
|
|
|
Returns
StoreAdapter<Item>
Properties
| Property | Modifier | Type |
|---|---|---|
|
|
( | |
|
|
< | |
|
|
( | |
|
|
| |
|
| ||
|
|
( | |
|
|
| |
|
|
( | |
|
|
( | |
|
| ||
|
|
|
Methods
createKey()
protectedcreateKey(ref):string
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
string
createKeyByItem()
protectedcreateKeyByItem(item):string
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
string
createKeyByQuery()
protectedcreateKeyByQuery(queryRef,parentRef?,args?):string
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
| |
|
|
|
Returns
string
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>
createQueryKeyGlobMatcher()
protectedcreateQueryKeyGlobMatcher(queryRef,parentRef,args):string
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
string
createQueryKeyHeader()
protectedcreateQueryKeyHeader(parentRef,args?):string
Parameters
| Parameter | Type |
|---|---|
|
| |
|
|
|
Returns
string
createQueryKeyNamespace()
protectedcreateQueryKeyNamespace(queryRef):string
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
string
createQueryKeyRegExpMatcher()
protectedcreateQueryKeyRegExpMatcher(queryRef,parentRef,args):RegExp
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
RegExp
decodeQueryItemRef()
protecteddecodeQueryItemRef(encodedRef):null|string
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
null | string
delete()
delete(
ref,evictQueries?):Promise<void>
Parameters
| Parameter | Type |
|---|---|
|
| |
|
|
|
Returns
Promise<void>
deleteQueries()
deleteQueries<
Result,Root,Args>(queryRef?,matcher?):Promise<void>
Type Parameters
| Type Parameter |
|---|
|
|
|
|
|
|
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Promise<void>
encodeQueryItemRef()
protectedencodeQueryItemRef(item):string
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
string
get()
get(
ref):Promise<null|Item>
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Promise<null | Item>
getMany()
Call Signature
getMany(
refs):Promise<null|Item[]>
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
Promise<null | Item[]>
Call Signature
getMany<
T>(refs,fallback):Promise<Item[]>
Type Parameters
| Type Parameter |
|---|
|
|
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
( |
Returns
Promise<Item[]>
getQueryResult()
getQueryResult<
Result,Root,Args>(queryRef,matcher?):Promise<null| {query:Result; }>
Type Parameters
| Type Parameter |
|---|
|
|
|
|
|
|
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Promise<null | { query: Result; }>
getRef()
protectedgetRef(root):ItemRef
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
getRevision()
protectedgetRevision():string
Returns
string
loaderFn()
protectedloaderFn(refs):Promise<any[]>
Parameters
| Parameter | Type |
|---|---|
|
|
readonly |
Returns
Promise<any[]>
parseItem()
protectedparseItem(value):Item
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
Item
save()
save(
item):Promise<void>
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
Promise<void>
saveQueryResult()
saveQueryResult<
Result,Root,Args>(queryRef,data,matcher?):Promise<void>
Type Parameters
| Type Parameter |
|---|
|
|
|
|
|
|
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
Promise<void>
stringifyItem()
protectedstringifyItem(item):string
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
string