Options
All
  • Public
  • Public/Protected
  • All
Menu

Variables

Const onceOfSameParam

onceOfSameParam: _onceOfSameParam & object = Object.assign(_onceOfSameParam, {identity: onceOfSameParamIdentity,})

Functions

_onceOfSameParam

包装一个函数为指定参数只执行一次的函数

Type parameters

Parameters

  • fn: Fn

    需要包装的函数

  • identity: onceOfSameParamIdentity = onceOfSameParamIdentity Default value

    参数转换的函数,参数为需要包装函数的参数

  • memoryCache: BaseMemoryCache<any, any> = MemoryCacheFactory.create(MemoryCacheEnum.Fifo) Default value

Returns Fn & object

需要被包装的函数

Const onceOfSameParamIdentity

  • onceOfSameParamIdentity(fn: Func, args: any []): string

Parameters

  • fn: Func
  • args: any []

Returns string

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.