memory
Implementation of in-memory custom list store.
InMemoryCustomListEntryMapper
Bases: CustomListEntryMapper
In-memory mapper for custom list entry resource
Source code in mlte/store/custom_list/underlying/memory.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
|
storage = storage
instance-attribute
A reference to underlying storage.
InMemoryCustomListStore
Bases: CustomListStore
An in-memory implementation of the MLTE custom list store.
Source code in mlte/store/custom_list/underlying/memory.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
storage = MemoryCustomListStorage()
instance-attribute
The underlying storage for the store.
clone()
Clones the store. Shallow clone.
Returns:
Type | Description |
---|---|
InMemoryCustomListStore
|
The cloned store |
Source code in mlte/store/custom_list/underlying/memory.py
38 39 40 41 42 43 44 45 |
|
session()
Return a session handle for the store instance.
Returns:
Type | Description |
---|---|
InMemoryCustomListStoreSession
|
The session handle |
Source code in mlte/store/custom_list/underlying/memory.py
31 32 33 34 35 36 |
|
InMemoryCustomListStoreSession
Bases: CustomListStoreSession
An in-memory implementation of the MLTE custom list store.
Source code in mlte/store/custom_list/underlying/memory.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
|
custom_list_entry_mapper = InMemoryCustomListEntryMapper(storage=storage)
instance-attribute
The mapper to the custom list entry CRUD.
storage = storage
instance-attribute
The storage.
close()
Close the session.
Source code in mlte/store/custom_list/underlying/memory.py
76 77 78 79 |
|
MemoryCustomListStorage
A simple storage wrapper for the in-memory store.
Source code in mlte/store/custom_list/underlying/memory.py
48 49 50 51 52 53 54 55 56 |
|