Interface DurableObjectStorage
interface DurableObjectStorage { delete(key,
options?): Promise<boolean>; delete(keys,
options?): Promise<number>; deleteAlarm(options?): Promise<void>; deleteAll(options?): Promise<void>; get<T>(key,
options?): Promise<T>; get<T>(keys,
options?): Promise<Map<string, T>>; getAlarm(options?): Promise<number>; list<T>(options?): Promise<Map<string, T>>; put<T>(key,
value,
options?): Promise<void>; put<T>(entries,
options?): Promise<void>; setAlarm(scheduledTime,
options?): Promise<void>; sync(): Promise<void>; transaction<T>(closure): Promise<T>; transactionSync<T>(closure): T; } Methods
delete
- delete(key, options?): Promise<boolean>
Returns Promise<boolean>
- delete(keys, options?): Promise<number>
Returns Promise<number>
deleteAlarm
- deleteAlarm(options?): Promise<void>
Returns Promise<void>
deleteAll
- deleteAll(options?): Promise<void>
Returns Promise<void>
get
- get<T>(key, options?): Promise<T>
Returns Promise<T>
- get<T>(keys, options?): Promise<Map<string, T>>
Returns Promise<Map<string, T>>
getAlarm
- getAlarm(options?): Promise<number>
Returns Promise<number>
list
- list<T>(options?): Promise<Map<string, T>>
Returns Promise<Map<string, T>>
put
- put<T>(key, value, options?): Promise<void>
Returns Promise<void>
- put<T>(entries, options?): Promise<void>
Returns Promise<void>
setAlarm
- setAlarm(scheduledTime, options?): Promise<void>
Returns Promise<void>
sync
- sync(): Promise<void>
Returns Promise<void>
transaction
- transaction<T>(closure): Promise<T>
Parameters
- closure: ((txn) => Promise<T>)
- (txn): Promise<T>
Returns Promise<T>
Returns Promise<T>
transactionSync
- transactionSync<T>(closure): T
Returns T