BATCH GET: fetch multiple keys. Returns values in order (None for missing).
(
&self,
tenant_id: u64,
collection: &str,
keys: &[Vec<u8>],
now_ms: u64,
)
| 239 | |
| 240 | /// BATCH GET: fetch multiple keys. Returns values in order (None for missing). |
| 241 | pub fn batch_get( |
| 242 | &self, |
| 243 | tenant_id: u64, |
| 244 | collection: &str, |
| 245 | keys: &[Vec<u8>], |
| 246 | now_ms: u64, |
| 247 | ) -> Vec<Option<Vec<u8>>> { |
| 248 | keys.iter() |
| 249 | .map(|k| self.get(tenant_id, collection, k, now_ms)) |
| 250 | .collect() |
| 251 | } |
| 252 | |
| 253 | /// BATCH PUT: insert/update multiple pairs. Returns count of new keys. |
| 254 | pub fn batch_put( |