refactor(backend): rename Cache -> MemoryCache
This commit is contained in:
parent
a5f76c064e
commit
7f3afac0a2
15 changed files with 54 additions and 54 deletions
|
@ -3,7 +3,7 @@ import { DI } from '@/di-symbols.js';
|
|||
import type { AccessTokensRepository, AppsRepository, UsersRepository } from '@/models/index.js';
|
||||
import type { LocalUser } from '@/models/entities/User.js';
|
||||
import type { AccessToken } from '@/models/entities/AccessToken.js';
|
||||
import { KVCache } from '@/misc/cache.js';
|
||||
import { MemoryKVCache } from '@/misc/cache.js';
|
||||
import type { App } from '@/models/entities/App.js';
|
||||
import { UserCacheService } from '@/core/UserCacheService.js';
|
||||
import isNativeToken from '@/misc/is-native-token.js';
|
||||
|
@ -18,7 +18,7 @@ export class AuthenticationError extends Error {
|
|||
|
||||
@Injectable()
|
||||
export class AuthenticateService {
|
||||
private appCache: KVCache<App>;
|
||||
private appCache: MemoryKVCache<App>;
|
||||
|
||||
constructor(
|
||||
@Inject(DI.usersRepository)
|
||||
|
@ -32,7 +32,7 @@ export class AuthenticateService {
|
|||
|
||||
private userCacheService: UserCacheService,
|
||||
) {
|
||||
this.appCache = new KVCache<App>(Infinity);
|
||||
this.appCache = new MemoryKVCache<App>(Infinity);
|
||||
}
|
||||
|
||||
@bindThis
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue