ProtectedcacheProtectedcacheProtectedcacheGet multiple values from cache by an array of keys.
If the underlying CacheService does not provide a batch get, this method falls back to parallel single gets.
Expected type of each cached value.
Array of cache keys to read.
An array containing the values or nulls for missing keys.
ProtectedcacheRemoves a user from Redis cache
user:${id}User ID to remove from cache
Searches for a user in Redis cache by email address
user:email:${email}User email address to search for
Promise resolving to user object or null if not found
Searches for a user in Redis cache by ID
user:${id}User ID to search for
Promise resolving to user object or null if not found
ProtectedmapMap low-level cache errors to DaoError subclasses.
The original error thrown by the cache client.
A DaoError or a more specific subclass representing the failure.
Creates or updates a user in Redis cache
user:${id} and creates mapping user:email:${email} -> user_idUser object to save in cache
Promise resolving to the user object (same as passed)
Base abstraction for DAOs that use a caching layer.
Provides helper methods to interact with CacheService and maps underlying cache errors into DaoError subclasses.