Multi Get
Retrieves multiple values from the database by their keys.
- Parameters:
keys
: An array of keys to look up.
- Returns:
- The result of the operation, includes an array of values or an error if the operation failed.
const result = db.multiGet<User>(["user:1234", "user:5678"]);
if (result.success) {
console.log(result.data[0].age);
} else {
console.log(result.error.message);
}