Dalmart
    Preparing search index...

    Represents a server for a memory database.

    Implements

    Index

    Constructors

    Accessors

    Methods

    • The getItem() method of the Storage interface, when passed a key name, will return that key's value, or null if the key does not exist, in the given Storage object.

      MDN Reference

      Parameters

      • key: string

      Returns null | string

    • The key() method of the Storage interface, when passed a number n, returns the name of the nth key in a given Storage object.

      MDN Reference

      Parameters

      • index: number

      Returns null | string

    • The removeItem() method of the Storage interface, when passed a key name, will remove that key from the given Storage object if it exists.

      MDN Reference

      Parameters

      • key: string

      Returns void

    • The setItem() method of the Storage interface, when passed a key name and value, will add that key to the given Storage object, or update that key's value if it already exists.

      MDN Reference

      Parameters

      • key: string
      • value: string

      Returns void