All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.java.com.aerospike.play.cache.AerospikeCacheApiProvider.scala Maven / Gradle / Ivy

The newest version!
package com.aerospike.play.cache

import play.api.Configuration
import play.api.inject.{BindingKey, Injector}
import javax.inject.{Inject,Singleton, Provider}
import com.aerospike.cache._

/**
 * Provider for AerospikeScalaCacheApi
 */
@Singleton
class AerospikeCacheApiProvider(namespace: String) extends Provider[AerospikeScalaCacheApi] {
 	@Inject private var injector: Injector = _
 	
 	lazy val get: AerospikeScalaCacheApi = {
 		 new AerospikeScalaCacheApi(injector.instanceOf[AerospikeCache], namespace);
 	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy