Options
All
  • Public
  • Public/Protected
  • All
Menu

캐시 기능 제공

Hierarchy

  • Cache

Index

Constructors

constructor

  • new Cache(context: Context): Cache

Properties

Private context

context: Context = null

Methods

Private applyConfigCache

  • applyConfigCache(to: Route, from: Route): void

clear

  • clear(excludeActive?: boolean): Promise<void>

findKeepAliveComponents

  • findKeepAliveComponents(): any[]

Private findKeepAliveParentComponents

  • findKeepAliveParentComponents(): any[]

Private init

  • init(): void

isInactivatedComponent

  • isInactivatedComponent(component: Vue): boolean

remove

  • remove(fn: (key: string) => boolean, excludeActive?: boolean): Promise<void>
  • 특정 조건의 컴포넌트 제거

    Parameters

    • fn: (key: string) => boolean

      컴포넌트 제거 조건 판단 메소드

        • (key: string): boolean
        • Parameters

          • key: string

          Returns boolean

    • Default value excludeActive: boolean = true

      활성화 된 컴포넌트 제거 여부

    Returns Promise<void>