pub fn validate_key_count(
count: usize,
max_keys: usize,
) -> Result<(), ValidationError>Expand description
Validate that a batch operation doesn’t contain more than max_keys keys.
Large batches can cause CPU spikes and memory pressure. The limit of 1000 keys per request is generous for normal use but blocks accidental or malicious bulk operations.