mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/inference
@mlx-bun/inference/state
CacheCodec
Interface CacheCodec
interface
CacheCodec
{
clone
(
cache
:
Cache
,
context
:
CloneContext
)
:
Cache
;
headerTrimmable
(
entry
:
CacheHeaderEntry
)
:
boolean
;
load
(
entry
:
CacheHeaderEntry
,
context
:
LoadContext
)
:
Cache
;
matches
(
cache
:
Cache
)
:
boolean
;
snapshot
(
cache
:
Cache
,
context
:
SnapshotContext
)
:
CacheHeaderEntry
;
}
Index
Methods
clone
header
Trimmable
load
matches
snapshot
Methods
clone
clone
(
cache
:
Cache
,
context
:
CloneContext
)
:
Cache
Parameters
cache
:
Cache
context
:
CloneContext
Returns
Cache
header
Trimmable
headerTrimmable
(
entry
:
CacheHeaderEntry
)
:
boolean
Parameters
entry
:
CacheHeaderEntry
Returns
boolean
load
load
(
entry
:
CacheHeaderEntry
,
context
:
LoadContext
)
:
Cache
Parameters
entry
:
CacheHeaderEntry
context
:
LoadContext
Returns
Cache
matches
matches
(
cache
:
Cache
)
:
boolean
Parameters
cache
:
Cache
Returns
boolean
snapshot
snapshot
(
cache
:
Cache
,
context
:
SnapshotContext
)
:
CacheHeaderEntry
Parameters
cache
:
Cache
context
:
SnapshotContext
Returns
CacheHeaderEntry
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
clone
header
Trimmable
load
matches
snapshot
Documentation
mlx-bun library API
Loading...