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.
16 lines
411 B
16 lines
411 B
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)
|
|
}
|
|
}
|
|
|