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

commonMain.software.momento.kotlin.sdk.internal.InternalClient.kt Maven / Gradle / Ivy

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
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy