1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
use crateStorageKey;
/// Represents storage operations that can be performed by both the main Samod instance
/// and document actors.
///
/// `StorageTask` defines the common interface for all storage operations:
/// - Single value operations (Load, Put, Delete)
/// - Bulk operations (LoadRange)
///
/// This enum is used in two contexts:
/// 1. As part of `IoAction::Storage(StorageTask)` for the main Samod instance
/// 2. As part of `DocumentIoTask` for document actors
///
/// ## Storage Model
///
/// Storage operations work with a simple key-value model:
/// - Keys are represented by `StorageKey`
/// - Values are arbitrary byte arrays
/// - Range queries are supported via prefix matching