11import type { CacheStore } from "../types" ;
22
33export class NullCache implements Required < CacheStore > {
4- // eslint-disable-next-line @typescript-eslint/no-unused-vars
5- async get < T > ( _ : string ) : Promise < T > {
4+ async get < T > ( _key : string ) : Promise < T > {
65 return undefined as T ;
76 }
87
9- // eslint-disable-next-line @typescript-eslint/no-unused-vars
10- async set ( _key : string , _value : string , _ttl ?: number ) : Promise < boolean > {
8+ async set ( __key : string , _value : string , _ttl ?: number ) : Promise < boolean > {
119 return true ;
1210 }
1311
14- // eslint-disable-next-line @typescript-eslint/no-unused-vars
1512 async del ( _key : string ) : Promise < boolean > {
1613 return true ;
1714 }
@@ -20,21 +17,18 @@ export class NullCache implements Required<CacheStore> {
2017 return true ;
2118 }
2219
23- async getMultiple < T > ( _keys : string [ ] ) : Promise < ( T | undefined ) [ ] > {
24- return _keys . map ( ( ) => undefined ) ;
20+ async getMultiple < T > ( keys : string [ ] ) : Promise < ( T | undefined ) [ ] > {
21+ return keys . map ( ( ) => undefined ) ;
2522 }
2623
27- // eslint-disable-next-line @typescript-eslint/no-unused-vars
2824 async setMultiple ( _values : Record < string , string > , _ttl ?: number ) : Promise < boolean > {
2925 return true ;
3026 }
3127
32- // eslint-disable-next-line @typescript-eslint/no-unused-vars
3328 async delMultiple ( _keys : string [ ] ) : Promise < boolean > {
3429 return true ;
3530 }
3631
37- // eslint-disable-next-line @typescript-eslint/no-unused-vars
3832 async has ( _key : string ) : Promise < boolean > {
3933 return false ;
4034 }
0 commit comments