Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICacheFactoryService

$cacheFactory - service in module ng

Factory that constructs Cache objects and gives access to them.

see https://docs.angularjs.org/api/ng/service/$cacheFactory

Hierarchy

  • ICacheFactoryService

Callable

  • __call(cacheId: string, optionsMap?: object): ICacheObject
  • Factory that constructs Cache objects and gives access to them.

    Factory that constructs Cache objects and gives access to them.

    see https://docs.angularjs.org/api/ng/service/$cacheFactory

    Parameters

    • cacheId: string

      Name or id of the newly created cache.

    • Optional optionsMap: object

      Options object that specifies the cache behavior. Properties:

      capacity — turns the cache into LRU cache.

      • Optional capacity?: number

    Returns ICacheObject

Index

Methods

Methods

get

  • Get access to a cache object by the cacheId used when it was created.

    Parameters

    • cacheId: string

      Name or id of a cache to access.

    Returns ICacheObject

info

  • info(): any
  • Get information about all the caches that have been created.

    Returns any

    key-value map of cacheId to the result of calling cache#info

Generated using TypeDoc