Interface KVNamespace.Key

All Superinterfaces:
org.teavm.jso.JSObject
Enclosing interface:
KVNamespace

public static interface KVNamespace.Key extends org.teavm.jso.JSObject
One key in a listing.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns when the key expires, in seconds since the epoch, or 0 when it does not.
    Returns the metadata stored with the value, or null.
    Returns the key name.

    Methods inherited from interface org.teavm.jso.JSObject

    cast
  • Method Details

    • getName

      String getName()
      Returns the key name.
      Returns:
      the key name
    • getExpiration

      int getExpiration()
      Returns when the key expires, in seconds since the epoch, or 0 when it does not.
      Returns:
      when the key expires, in seconds since the epoch, or 0 when it does not
    • getMetadata

      TSObject getMetadata()
      Returns the metadata stored with the value, or null.
      Returns:
      the metadata stored with the value, or null