Class: LoadCache

LoadCache

new LoadCache()

加载缓存类

Fires:
  • event:update 更新事件

Mixes In

Members Show Inherited

Name Type Default Description
isLoadCache Boolean true
className String LoadCache
enabled Boolean true

enabled

static,readonlyLoadCache.PENDINGNumber

PENDING

Default Value:
  • 1

static,readonlyLoadCache.LOADEDNumber

PENDING

Default Value:
  • 2

static,readonlyLoadCache.FAILEDNumber

FAILED

Default Value:
  • 3

Methods Show Inherited

update(key, state, data)

update

Name Type Description
key string
state number

可选值为:LoadCache.LOADED LoadCache.PENDING LoadCache.FAILED

data any

get(key){any}

get

Name Type Description
key string
Returns:
Type Description
any

remove

Name Type Description
key string

clear

wait(file){Promise.<any>}

wait

Name Type Description
file any
Returns:
Type Description
Promise.<any>