Hilo3d API - v2.0.0
Home
Examples
Repository
Preparing search index...
Hilo3d
Cache
Class Cache<Value>
A keyed cache with optional object-identity lookup.
Type Parameters
Value
=
unknown
Index
Constructors
constructor
Methods
add
each
get
get
Object
remove
remove
All
remove
Object
Constructors
constructor
new
Cache
<
Value
=
unknown
>
()
:
Cache
<
Value
>
Type Parameters
Value
=
unknown
Returns
Cache
<
Value
>
Methods
add
add
(
id
:
string
,
value
:
Value
)
:
void
Parameters
id
:
string
value
:
Value
Returns
void
each
each
(
callback
:
(
value
:
Value
,
id
:
string
)
=>
void
)
:
void
Parameters
callback
:
(
value
:
Value
,
id
:
string
)
=>
void
Returns
void
get
get
(
id
:
string
)
:
Value
|
undefined
Parameters
id
:
string
Returns
Value
|
undefined
get
Object
getObject
(
object
:
object
)
:
Value
|
undefined
Parameters
object
:
object
Returns
Value
|
undefined
remove
remove
(
id
:
string
)
:
void
Parameters
id
:
string
Returns
void
remove
All
removeAll
()
:
void
Returns
void
remove
Object
removeObject
(
object
:
object
)
:
void
Parameters
object
:
object
Returns
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
add
each
get
get
Object
remove
remove
All
remove
Object
Home
Examples
Repository
Hilo3d API - v2.0.0
Loading...
A keyed cache with optional object-identity lookup.