Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CacheService

Hierarchy

  • CacheService

Index

Properties

Static folder

folder: string

Static mode

mode: CacheMode = CacheMode.Memory

Methods

Static delete

  • delete(type?: string, filename: string): void

Static delete$

  • delete$(type?: string, filename: string): Observable<boolean>

Static get

  • get<T>(type: string, filename: string): T

Static get$

  • get$<T>(type: string, filename: string): Observable<T>

Static Protected getKey

  • getKey(type?: string, filename: string): string

Static Protected getPath

  • getPath(type?: string, filename: string): string

Static has

  • has(type?: string, filename: string): boolean

Static has$

  • has$(type?: string, filename: string): Observable<boolean>

Static set

  • set(type?: string, filename: string, value: any, maxAge?: number, cacheControl?: CacheControlType): any
  • Parameters

    • Default value type: string = "cache"
    • filename: string
    • value: any
    • Default value maxAge: number = 0
    • Default value cacheControl: CacheControlType = CacheControlType.Public

    Returns any

Static set$

  • set$(type?: string, filename: string, value: any, maxAge?: number, cacheControl?: CacheControlType): any
  • Parameters

    • Default value type: string = "cache"
    • filename: string
    • value: any
    • Default value maxAge: number = 0
    • Default value cacheControl: CacheControlType = CacheControlType.Public

    Returns any