Open-source multiplayer game server compatible with the RuneScape client https://www.openrs2.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
openrs2/game/src/main/kotlin/org/openrs2/game/cache/CacheProvider.kt

16 lines
415 B

package org.openrs2.game.cache
import io.netty.buffer.ByteBufAllocator
import jakarta.inject.Inject
import jakarta.inject.Provider
import org.openrs2.cache.Cache
import org.openrs2.cache.Store
public class CacheProvider @Inject constructor(
private val store: Store,
private val alloc: ByteBufAllocator
) : Provider<Cache> {
override fun get(): Cache {
return Cache.open(store, alloc)
}
}