GET: O(1) hash table lookup. Returns None if not found or expired.
(
&self,
tenant_id: u64,
collection: &str,
key: &[u8],
now_ms: u64,
)
| 181 | |
| 182 | /// GET: O(1) hash table lookup. Returns None if not found or expired. |
| 183 | pub fn get( |
| 184 | &self, |
| 185 | tenant_id: u64, |
| 186 | collection: &str, |
| 187 | key: &[u8], |
| 188 | now_ms: u64, |
| 189 | ) -> Option<Vec<u8>> { |
| 190 | let tkey = table_key(tenant_id, collection); |
| 191 | self.tables.get(&tkey)?.get(key, now_ms).map(|v| v.to_vec()) |
| 192 | } |
| 193 | |
| 194 | /// GET with surrogate: returns the value bytes AND the row's stable |
| 195 | /// surrogate when the binding was made. Used by the clone-delegated |