Skip to content

value is always returning null  #43

@utills

Description

@utills

code
fun storeCredentials(value: String) {
val cache = Cache.Builder<String, String>().build()
cache.put(KeyConstant.userCredentials, value)
val value = cache.get(KeyConstant.userCredentials)
print(value)
}

fun retrieveCredentials(): String? {
    val cache = Cache.Builder<String, String>().build()
    val creds = cache.get(KeyConstant.userCredentials)
    return creds
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions