Skip to content

Commit

Permalink
feat: rename evict cache to invalidate cache
Browse files Browse the repository at this point in the history
BREAKING CHANGE: rename evict cache to invalidate cache
  • Loading branch information
César Alberca committed Jan 21, 2022
1 parent e9a0da5 commit 4874aee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Class } from '@archimedes/utils'
import { UseCase } from '../use-case/use-case'
import { CacheInvalidations } from '../runner/cache-invalidations'

export function EvictCache(clazz: Class): void {
export function InvalidateCache(clazz: Class): void {
const metadata: Class[] | undefined = Reflect.getMetadata('design:paramtypes', clazz)
if (metadata !== undefined) {
CacheInvalidations.set(
Expand Down
2 changes: 1 addition & 1 deletion packages/arch/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export type { Cache, CacheResult } from './cache/cache'
export { InvalidationPolicy } from './cache/invalidation-policy'
export { LruCache } from './cache/lru-cache'
export { CacheManager } from './cache/cache-manager'
export { EvictCache } from './cache/evict-cache'
export { InvalidateCache } from './cache/invalidate-cache'
export { NotificationCenter } from './notifications/notification-center'
export type { Notification } from './notifications/notification'
export { Runner } from './runner/runner'
Expand Down

0 comments on commit 4874aee

Please sign in to comment.