Interface: CacheStoreBinding<IsAsync, Value>
Defined in: schemas/v2/cache/bindings/types.ts:3
Type Parameters
| Type Parameter |
|---|
IsAsync extends boolean |
Value |
Methods
bulkDelete()?
optionalbulkDelete(keys):IfAsync<IsAsync,void>
Defined in: schemas/v2/cache/bindings/types.ts:28
Parameters
| Parameter | Type |
|---|---|
keys | string[] |
Returns
IfAsync<IsAsync, void>
bulkGet()?
optionalbulkGet(keys):IfAsync<IsAsync, (undefined| {key:string;value:Value; })[]>
Defined in: schemas/v2/cache/bindings/types.ts:27
Parameters
| Parameter | Type |
|---|---|
keys | string[] |
Returns
IfAsync<IsAsync, (undefined | { key: string; value: Value; })[]>
bulkPut()?
optionalbulkPut(items):IfAsync<IsAsync,void>
Defined in: schemas/v2/cache/bindings/types.ts:23
Parameters
| Parameter | Type |
|---|---|
items | { key: string; value: Value; }[] |
Returns
IfAsync<IsAsync, void>
delete()
delete(
key):IfAsync<IsAsync,void>
Defined in: schemas/v2/cache/bindings/types.ts:16
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
IfAsync<IsAsync, void>
deleteAll()?
optionaldeleteAll():IfAsync<IsAsync,void>
Defined in: schemas/v2/cache/bindings/types.ts:30
Returns
IfAsync<IsAsync, void>
get()
get(
key):IfAsync<IsAsync,undefined|Value>
Defined in: schemas/v2/cache/bindings/types.ts:15
Method to retreive the stored value.
Parameters
| Parameter | Type | Description |
|---|---|---|
key | string | The key that has information about the item type and id |
Returns
IfAsync<IsAsync, undefined | Value>
list()?
optionallist(options?):IfAsync<IsAsync, {keys: {key:string;metadata:object; }[]; }>
Defined in: schemas/v2/cache/bindings/types.ts:18
Parameters
| Parameter | Type |
|---|---|
options? | { getMetadata?: (item) => object; prefix?: string; } |
options.getMetadata? | (item) => object |
options.prefix? | string |
Returns
IfAsync<IsAsync, { keys: { key: string; metadata: object; }[]; }>
put()
put(
key,value):IfAsync<IsAsync,void>
Defined in: schemas/v2/cache/bindings/types.ts:9
Store the value from the client to an external resource
Parameters
| Parameter | Type | Description |
|---|---|---|
key | string | The key that has information about the item type and id |
value | Value | The value to store |
Returns
IfAsync<IsAsync, void>