forked from openrs2/openrs2
parent
6a0266e88f
commit
1b83f4b4b3
@ -0,0 +1,16 @@ |
||||
package org.openrs2.game.cache |
||||
|
||||
import io.netty.buffer.ByteBufAllocator |
||||
import org.openrs2.cache.Cache |
||||
import org.openrs2.cache.Store |
||||
import javax.inject.Inject |
||||
import javax.inject.Provider |
||||
|
||||
public class CacheProvider @Inject constructor( |
||||
private val store: Store, |
||||
private val alloc: ByteBufAllocator |
||||
) : Provider<Cache> { |
||||
override fun get(): Cache { |
||||
return Cache.open(store, alloc) |
||||
} |
||||
} |
Loading…
Reference in new issue