Interface DurableObjectTransaction
interface DurableObjectTransaction { delete(key,
options?): Promise<boolean>; delete(keys,
options?): Promise<number>; deleteAlarm(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>; rollback(): void; setAlarm(scheduledTime,
options?): Promise<void>; } 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>
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>
rollback
- rollback(): void
Returns void
setAlarm
- setAlarm(scheduledTime, options?): Promise<void>
Returns Promise<void>