commonMain.software.momento.kotlin.sdk.internal.InternalClient.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Kotlin client SDK for Momento Serverless Cache
The newest version!
package software.momento.kotlin.sdk.internal
import io.grpc.Metadata
internal abstract class InternalClient: AutoCloseable {
companion object {
private val CACHE_NAME_KEY = Metadata.Key.of("cache", Metadata.ASCII_STRING_MARSHALLER)
fun metadataWithCache(cacheName: String): Metadata {
val metadata = Metadata()
metadata.put(CACHE_NAME_KEY, cacheName)
return metadata
}
}
}