forked from openrs2/openrs2
parent
a3cca0e6c3
commit
65b3e1315a
@ -0,0 +1,12 @@ |
||||
package org.openrs2.cache |
||||
|
||||
import javax.inject.Inject |
||||
import javax.inject.Provider |
||||
|
||||
public class Js5MasterIndexProvider @Inject constructor( |
||||
private val store: Store |
||||
) : Provider<Js5MasterIndex> { |
||||
override fun get(): Js5MasterIndex { |
||||
return Js5MasterIndex.create(store) |
||||
} |
||||
} |
@ -0,0 +1,14 @@ |
||||
package org.openrs2.cache |
||||
|
||||
import io.netty.buffer.ByteBufAllocator |
||||
import java.nio.file.Path |
||||
import javax.inject.Inject |
||||
import javax.inject.Provider |
||||
|
||||
public class StoreProvider @Inject constructor( |
||||
private val alloc: ByteBufAllocator |
||||
) : Provider<Store> { |
||||
override fun get(): Store { |
||||
return Store.open(Path.of("nonfree/share/cache"), alloc) |
||||
} |
||||
} |
Loading…
Reference in new issue