toggle menu
openrs2
jvm
switch theme
search in API
openrs2
/
org.openrs2.cache
/
Cache
/
Companion
/
open
open
@
JvmOverloads
@
JvmStatic
fun
open
(
root
:
Path
,
alloc
:
ByteBufAllocator
=
ByteBufAllocator.DEFAULT
,
unpackedCacheSize
:
Int
=
UnpackedCache.DEFAULT_CAPACITY
)
:
Cache
@
JvmOverloads
@
JvmStatic
fun
open
(
store
:
Store
,
alloc
:
ByteBufAllocator
=
ByteBufAllocator.DEFAULT
,
unpackedCacheSize
:
Int
=
UnpackedCache.DEFAULT_CAPACITY
)
:
Cache