Class: ol.TileCache

ol.TileCache

new TileCache

Parameters:
Name Type Argument Description
highWaterMark number= <optional>
(Optional) High water mark.
Source:
  • tilecache.js, line 20

Extends

  • ol.structs.LRUCache

Methods

assertValid

FIXME empty description for jsdoc
Inherited From:
Source:
  • lrucache.js, line 46

canExpireCache

Source:
  • tilecache.js, line 38
Returns:
Can expire cache.
Type
boolean

clear

FIXME empty description for jsdoc
Inherited From:
Source:
  • lrucache.js, line 81

containsKey

Parameters:
Name Type Description
key string Key.
Inherited From:
Source:
  • lrucache.js, line 93
Returns:
Contains key.
Type
boolean

expireCache

Parameters:
Name Type Description
usedTiles Object.<string, ol.TileRange> Used tiles.
Source:
  • tilecache.js, line 46

forEach

Parameters:
Name Type Argument Description
f Function Function.
obj Object= <optional>
(Optional) Object.
Inherited From:
Source:
  • lrucache.js, line 102

get

Parameters:
Name Type Description
key string Key.
Inherited From:
Source:
  • lrucache.js, line 115
Returns:
Value.
Type
*

getCount

Inherited From:
Source:
  • lrucache.js, line 138
Returns:
Count.
Type
number

getKeys

Inherited From:
Source:
  • lrucache.js, line 146
Returns:
Keys.
Type
Array.<string>

getValues

Inherited From:
Source:
  • lrucache.js, line 161
Returns:
Values.
Type
Array

peekLast

Inherited From:
Source:
  • lrucache.js, line 176
Returns:
Last value.
Type
*

peekLastKey

Inherited From:
Source:
  • lrucache.js, line 185
Returns:
Last key.
Type
string

pop

Inherited From:
Source:
  • lrucache.js, line 194
Returns:
value Value.
Type
*

set

Parameters:
Name Type Description
key string Key.
value * Value.
Inherited From:
Source:
  • lrucache.js, line 216