File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export class CacheService {
92
92
* Get all key-value pairs from the Redis cache.
93
93
* This method is not recommended for large databases, as it will load all key-value pairs into memory and be slow.
94
94
* However, it is useful for notification caching, where the database is expected to be small to get the missing notifications.
95
- * @return {Promise<{ [key: string]: string }> } - A promise that resolves to an object containing all key-value pairs in the cache.
95
+ * @returns {Promise<{ [key: string]: string }> } - A promise that resolves to an object containing all key-value pairs in the cache.
96
96
* @memberof CacheService
97
97
*/
98
98
async read_whole_database ( ) : Promise < { [ key : string ] : string } > {
Original file line number Diff line number Diff line change 1
1
import { Readable } from "stream"
2
2
import { CacheService } from "../service/CacheService" ;
3
3
const cache_service = new CacheService ( ) ;
4
+ /**
5
+ * Fetches the members from the cache service between the specified dates.
6
+ * @param {{
7
+ * from?: Date,
8
+ * until?: Date,
9
+ * }} [opts] - The options for the fetch.
10
+ * @param {Date } [opts.from] - The start date.
11
+ * @param {Date } [opts.until] - The end date.
12
+ * @returns {Promise<Readable> } - A promise that resolves to a readable stream of the members.
13
+ */
4
14
export async function getMembers ( opts ?: {
5
15
from ?: Date ,
6
16
until ?: Date ,
You can’t perform that action at this time.
0 commit comments